Class RoslynCount
- Namespace
- SunamoRoslyn
- Assembly
- SunamoRoslyn.dll
Tracks member and method counts before and after Roslyn operations on a class declaration.
public class RoslynCount
- Inheritance
-
RoslynCount
- Inherited Members
- Extension Methods
Properties
MemberCountAfter
The member count after the operation.
public int MemberCountAfter { get; set; }
Property Value
MemberCountBefore
The member count before the operation.
public int MemberCountBefore { get; set; }
Property Value
MethodCountAfter
The method count after the operation.
public int MethodCountAfter { get; set; }
Property Value
MethodCountBefore
The method count before the operation.
public int MethodCountBefore { get; set; }
Property Value
Methods
FillAfter(ClassDeclarationSyntax)
Fills the after-counts from the given class declaration.
public void FillAfter(ClassDeclarationSyntax classDeclaration)
Parameters
classDeclarationClassDeclarationSyntaxThe class declaration to count members and methods from.
FillBefore(ClassDeclarationSyntax)
Fills the before-counts from the given class declaration.
public void FillBefore(ClassDeclarationSyntax classDeclaration)
Parameters
classDeclarationClassDeclarationSyntaxThe class declaration to count members and methods from.
Log(string)
Logs the before and after counts for the given operation.
public void Log(string operation)
Parameters
operationstringThe name of the operation being tracked.
ThrowException()
Throws an exception if elements were not properly removed.
public void ThrowException()