C# Class ReferenceAnalysisAlgorithm.ReferenceFinder, DailyProjects

显示文件 Open project: GHScan/DailyProjects Class Usage Examples

Public Properties

Property Type Description
LogError Action
LogInfo Action

Public Methods

Method Description
FindReferences ( object targetObj, Action callback ) : void
FindReferences ( object targetObj, IEnumerable assemblys, Action callback ) : void
FindReferences ( object targetObj, object>.IEnumerable roots, Action callback ) : void
ReferenceFinder ( TypeGraph graph ) : System

Private Methods

Method Description
FindReferencesRecursively ( List path, object obj, object targetObj, HashSet findCache, Action callback ) : void
FlushErrorLog ( ) : void
LogException ( string ctx, Exception e ) : void
PathToString ( IEnumerable path ) : string
TryGetFieldValue ( IEnumerable path, object o, FieldInfo field ) : object
TryGetMemberValue ( IEnumerable path, object o, object>.Func accessor ) : object
TryGetPropertyValue ( IEnumerable path, object o, PropertyInfo prop ) : object

Method Details

FindReferences() public method

public FindReferences ( object targetObj, Action callback ) : void
targetObj object
callback Action
return void

FindReferences() public method

public FindReferences ( object targetObj, IEnumerable assemblys, Action callback ) : void
targetObj object
assemblys IEnumerable
callback Action
return void

FindReferences() public method

public FindReferences ( object targetObj, object>.IEnumerable roots, Action callback ) : void
targetObj object
roots object>.IEnumerable
callback Action
return void

ReferenceFinder() public method

public ReferenceFinder ( TypeGraph graph ) : System
graph TypeGraph
return System

Property Details

LogError public_oe property

public Action LogError
return Action

LogInfo public_oe property

public Action LogInfo
return Action