C# 클래스 StatePrinting.FieldHarvesters.ToStringAwareHarvester

Harvest all fields, public and private. Or use the ToString() if such is implemented on the class. We ignore the types from the following namespaces System.Reflection System.Runtime System.Func
상속: IFieldHarvester
파일 보기 프로젝트 열기: kbilsted/StatePrinter

공개 메소드들

메소드 설명
CanHandleType ( Type type ) : bool
GetFields ( Type type ) : List

We ignore all properties as they, in the end, will only point to some computed state or other fields. Hence they do not provide information about the actual state of the object.

ToStringAwareHarvester ( ) : System

비공개 메소드들

메소드 설명
GetMethodInfo ( Type type ) : MethodInfo

This more thorough way to avoid the "Ambiguous match found" exception while retrieving the ToString method Explained here http://stackoverflow.com/questions/11443707/getproperty-reflection-results-in-ambiguous-match-found-on-new-property

메소드 상세

CanHandleType() 공개 메소드

public CanHandleType ( Type type ) : bool
type System.Type
리턴 bool

GetFields() 공개 메소드

We ignore all properties as they, in the end, will only point to some computed state or other fields. Hence they do not provide information about the actual state of the object.
public GetFields ( Type type ) : List
type System.Type
리턴 List

ToStringAwareHarvester() 공개 메소드

public ToStringAwareHarvester ( ) : System
리턴 System