C# Class Endjin.Assembly.ChangeDetection.Query.UsageQueries.WhoUsesStringConstant

Search for the ldstr opcode which loads a string constant and check if the string constant matches the search string.
Inheritance: UsageVisitor
Datei anzeigen Open project: endjin/Endjin.Assembly.ChangeDetection

Public Methods

Method Description
VisitField ( FieldDefinition field ) : void
VisitMethodBody ( MethodBody body ) : void
WhoUsesStringConstant ( UsageQueryAggregator aggregator, string searchString ) : System
WhoUsesStringConstant ( UsageQueryAggregator aggregator, string searchString, bool bExactMatch ) : System
WhoUsesStringConstant ( UsageQueryAggregator aggregator, string searchString, bool bExactMatch, System.StringComparison compMode ) : System

Private Methods

Method Description
AddMatch ( Instruction ins, MethodBody body, string matchedString ) : void
IsMatch ( string value ) : bool

Method Details

VisitField() public method

public VisitField ( FieldDefinition field ) : void
field Mono.Cecil.FieldDefinition
return void

VisitMethodBody() public method

public VisitMethodBody ( MethodBody body ) : void
body Mono.Cecil.Cil.MethodBody
return void

WhoUsesStringConstant() public method

public WhoUsesStringConstant ( UsageQueryAggregator aggregator, string searchString ) : System
aggregator UsageQueryAggregator
searchString string
return System

WhoUsesStringConstant() public method

public WhoUsesStringConstant ( UsageQueryAggregator aggregator, string searchString, bool bExactMatch ) : System
aggregator UsageQueryAggregator
searchString string
bExactMatch bool
return System

WhoUsesStringConstant() public method

public WhoUsesStringConstant ( UsageQueryAggregator aggregator, string searchString, bool bExactMatch, System.StringComparison compMode ) : System
aggregator UsageQueryAggregator
searchString string
bExactMatch bool
compMode System.StringComparison
return System