C# 클래스 StatePrinting.FieldHarvesters.HarvestHelper

Reusable helper methods when implementing IFieldHarvester
파일 보기 프로젝트 열기: kbilsted/StatePrinter 1 사용 예제들

공개 메소드들

메소드 설명
GetFields ( Type type, BindingFlags flags ) : IEnumerable

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

GetFields ( Type type ) : List

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

GetFieldsAndProperties ( Type type, BindingFlags flags ) : IEnumerable

Returns all Membertype.Field and Membertype.Property except backing-fields

GetFieldsAndProperties ( Type type ) : List
IsHarvestable ( Type type ) : bool

Tell if the type makes any sense to dump

SanitizeFieldName ( string fieldName ) : string

Replaces the name of properties to remove the k__BackingField nonsense from the name.

비공개 메소드들

메소드 설명
GetSanitizedFieldInfoForFieldOrProperty ( MemberInfo memberInfo ) : SanitizedFieldInfo
IndexerFilter ( MemberInfo x ) : bool
NonBackingFieldFilter ( MemberInfo x ) : bool

메소드 상세

GetFields() 공개 메소드

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

GetFields() 공개 메소드

We ignore all properties as they, in the end, will only point to some computated 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

GetFieldsAndProperties() 공개 메소드

Returns all Membertype.Field and Membertype.Property except backing-fields
public GetFieldsAndProperties ( Type type, BindingFlags flags ) : IEnumerable
type System.Type
flags BindingFlags
리턴 IEnumerable

GetFieldsAndProperties() 공개 메소드

public GetFieldsAndProperties ( Type type ) : List
type System.Type
리턴 List

IsHarvestable() 공개 메소드

Tell if the type makes any sense to dump
public IsHarvestable ( Type type ) : bool
type System.Type
리턴 bool

SanitizeFieldName() 공개 메소드

Replaces the name of properties to remove the k__BackingField nonsense from the name.
public SanitizeFieldName ( string fieldName ) : string
fieldName string
리턴 string