Browse Source

[CodeIssues] Converted IgnoreConstructors to a property.

newNRvisualizers
Mike Krüger 13 years ago
parent
commit
40b8ce58d2
  1. 11
      ICSharpCode.NRefactory.CSharp/Refactoring/CodeIssues/RedundantThisIssue.cs

11
ICSharpCode.NRefactory.CSharp/Refactoring/CodeIssues/RedundantThisIssue.cs

@ -45,11 +45,20 @@ namespace ICSharpCode.NRefactory.CSharp.Refactoring @@ -45,11 +45,20 @@ namespace ICSharpCode.NRefactory.CSharp.Refactoring
IssueMarker = IssueMarker.GrayOut)]
public class RedundantThisIssue : ICodeIssueProvider
{
bool ignoreConstructors = true;
/// <summary>
/// Specifies whether to ignore redundant 'this' in constructors.
/// "this.Name = name;"
/// </summary>
public bool IgnoreConstructors = true;
public bool IgnoreConstructors {
get {
return ignoreConstructors;
}
set {
ignoreConstructors = value;
}
}
public IEnumerable<CodeIssue> GetIssues(BaseRefactoringContext context)
{

Loading…
Cancel
Save