Table of Contents

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

int

MemberCountBefore

The member count before the operation.

public int MemberCountBefore { get; set; }

Property Value

int

MethodCountAfter

The method count after the operation.

public int MethodCountAfter { get; set; }

Property Value

int

MethodCountBefore

The method count before the operation.

public int MethodCountBefore { get; set; }

Property Value

int

Methods

FillAfter(ClassDeclarationSyntax)

Fills the after-counts from the given class declaration.

public void FillAfter(ClassDeclarationSyntax classDeclaration)

Parameters

classDeclaration ClassDeclarationSyntax

The 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

classDeclaration ClassDeclarationSyntax

The 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

operation string

The name of the operation being tracked.

ThrowException()

Throws an exception if elements were not properly removed.

public void ThrowException()