Reporter | Rodney Foley (rsfoley) |
---|---|
Created | Apr 23, 2012 8:27:08 PM |
Updated | Apr 24, 2012 6:26:50 PM |
Priority | Normal |
Type | Unspecified |
Fix versions | No Fix versions |
State | Submitted |
Assignee | Alexey Kuptsov (alexey.kuptsov) |
Subsystem | No subsystem |
Affected versions | No Affected versions |
Fixed in build | No Fixed in build |
Greetings,
I noticed that R# Build 6.1.1000.82 in Visual Studio 2008 on a Class Library project with target framework set to .NET Framework 2.0 it is suggesting that I convert to use an Auto-Implemented Property which is not valid for .NET 2.0 as it wasn't introduced until C# 3.0.
The following code will trigger the suggestion "Convert to auto-property" with the version above on VS2008.
I noticed that R# Build 6.1.1000.82 in Visual Studio 2008 on a Class Library project with target framework set to .NET Framework 2.0 it is suggesting that I convert to use an Auto-Implemented Property which is not valid for .NET 2.0 as it wasn't introduced until C# 3.0.
The following code will trigger the suggestion "Convert to auto-property" with the version above on VS2008.
private bool _myPrivateField; public bool MyPublicProperty { get { return _myPrivateField; } set { _myPrivateField = value; } }