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

RSRP-113483: "Create Property" CA creates invalid property

$
0
0
Reporter Drew Noakes (drewnoakes) Drew Noakes (drewnoakes)
Created Jul 6, 2009 5:32:24 PM
Updated Mar 27, 2012 5:03:10 PM
Priority Normal
Type Bug
Fix versions 7.0
State Open
Assignee Alexey Kuptsov (alexey.kuptsov)
Subsystem No subsystem
Affected versions No Affected versions
Fixed in build No Fixed in build
R# highlighted the unknown symbol IsLoading in a usage such as this:

IsLoading = true;


The CA create property creates this in a sealed class:

        protected bool IsLoading
        {
            
        }


Of course it is a little strange to produce a protected member in a sealed class, as R# correctly points out after creating it.

Furthermore, choosing 'Create _isLoading as a backing field' creates this:

        protected bool IsLoading
        {
            get {
                return _isLoading;
            }
            set {
                _isLoading = value;
            }
        }


...even though my coding style preferences would create this (and does, if I reformat)...

        protected bool IsLoading
        {
            get { return _isLoading; }
            set { _isLoading = 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>