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 Андрей Вилинский (python) Андрей Вилинский (python)
Created Feb 3, 2012 9:04:28 PM
Updated Feb 3, 2012 9:06:28 PM
Priority Normal
Type Bug
Fix versions No Fix versions
State Submitted
Assignee Unassigned
Subsystem No subsystem
Affected versions 6.1.1
Fixed in build No Fixed in build
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>