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

RSRP-288157: Convert method to property method's makes a mess with methods's doc comments

$
0
0
Reporter vilinski (python) vilinski (python)
Created Feb 3, 2012 9:04:28 PM
Updated Apr 16, 2018 11:59:40 AM
Resolved Apr 16, 2018 11:59:40 AM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Obsolete
Type Bug
Fix version No Fix versions
Affected versions 6.1.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
It was a method like this one:
        /// <summary>
        /// Determines whether this instance has credentials - not empty <see cref="Server"/> and <see cref="User"/> values.
        /// </summary>
        /// <returns>
        /// <c>true</c> if this instance has credentials - not empty <see cref="Server"/> and <see cref="User"/> values; otherwise, <c>false</c>.
        /// </returns>
        public bool HasCredentials()
        {
            return
                !string.IsNullOrWhiteSpace(Server) &&
                !string.IsNullOrWhiteSpace(User);
        }
Context menu "Refactor this"->"Convert method to property"
and there is the property with messed doc comments:
        /// <summary>
        /// Determines whether this instance has credentials - not empty <see cref="Server"/> and <see cref="User"/> values.
        /// </summary>
        /// <value> &lt;c&gt;true&lt;/c&gt; if this instance has credentials - not empty &lt;see cref=&quot;Server&quot;/&gt; and &lt;see cref=&quot;User&quot;/&gt; values; otherwise, &lt;c&gt;false&lt;/c&gt;. </value>
        public bool HasCredentials
        {
            get
            {
                return
                    !string.IsNullOrWhiteSpace(Server) &&
                    !string.IsNullOrWhiteSpace(User);
            }
        }

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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