More common refactorings like renaming variables, removing empty statements and unused variables, etc

This commit is contained in:
Kwoth
2022-01-09 16:46:08 +01:00
parent 2ce3262d59
commit f07a855912
75 changed files with 447 additions and 465 deletions

View File

@@ -10,7 +10,7 @@ public class CommentGatheringTypeInspector : TypeInspectorSkeleton
private readonly ITypeInspector _innerTypeDescriptor;
public CommentGatheringTypeInspector(ITypeInspector innerTypeDescriptor)
=> this._innerTypeDescriptor = innerTypeDescriptor ?? throw new ArgumentNullException("innerTypeDescriptor");
=> _innerTypeDescriptor = innerTypeDescriptor ?? throw new ArgumentNullException("innerTypeDescriptor");
public override IEnumerable<IPropertyDescriptor> GetProperties(Type type, object container)
=> _innerTypeDescriptor.GetProperties(type, container).Select(d => new CommentsPropertyDescriptor(d));
@@ -43,7 +43,7 @@ public class CommentGatheringTypeInspector : TypeInspectorSkeleton
public CommentsPropertyDescriptor(IPropertyDescriptor baseDescriptor)
{
this._baseDescriptor = baseDescriptor;
_baseDescriptor = baseDescriptor;
Name = baseDescriptor.Name;
}

View File

@@ -24,7 +24,7 @@ public sealed class CommentsObjectDescriptor : IObjectDescriptor
public CommentsObjectDescriptor(IObjectDescriptor innerDescriptor, string comment)
{
this._innerDescriptor = innerDescriptor;
_innerDescriptor = innerDescriptor;
Comment = comment;
}
}