Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-297110: Convert to Auto-Property suggested when using .NET 2.0 in VS2008

$
0
0
Reporter Rodney Foley (rsfoley) 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.

private bool _myPrivateField;
public bool MyPublicProperty
{
    get { return _myPrivateField; }
    set { _myPrivateField = value; }
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>