C# 클래스 ObjectPrinter.TypeInspectors.InspectAllTypeInspector

Inspects all Fields and Properties, and any method definitions when IncludeMethods is true.
상속: ITypeInspector
파일 보기 프로젝트 열기: drewburlingame/ObjectPrinter 1 사용 예제들

공개 메소드들

메소드 설명
GetMemberList ( object objectToInspect, Type typeOfObjectToInspect ) : IEnumerable

InspectAllTypeInspector ( ) : System

ShouldInspect ( object objectToInspect, Type typeOfObjectToInspect ) : bool

If ShouldInspect returns true, this type inspector will be used to inspect the type

보호된 메소드들

메소드 설명
ParseFieldInfo ( object objectToInspect, FieldInfo fieldInfo ) : object

returns fieldInfo.GetValue(objectToInspect)

ParseMethodInfo ( object objectToInspect, MethodInfo methodInfo ) : object

returns methodInfo.ToString()

ParsePropertyInfo ( object instance, PropertyInfo property ) : object

returns property.GetValue(instance, null)

ShouldEvaluate ( object instance, MemberInfo member ) : bool

If ShouldEvaluate returns true, the value will be evaluated for the member

ShouldInclude ( object instance, ObjectInfo info ) : bool

If ShouldInclude returns true (after member is evaluated), the member will be printed out

비공개 메소드들

메소드 설명
ParseObjectValue ( Func func ) : object
ResetCache ( ) : void
ToObjectInfo ( object objectToInspect, MemberInfo memberInfo, object value ) : ObjectInfo

메소드 상세

GetMemberList() 공개 메소드

public GetMemberList ( object objectToInspect, Type typeOfObjectToInspect ) : IEnumerable
objectToInspect object
typeOfObjectToInspect System.Type
리턴 IEnumerable

InspectAllTypeInspector() 공개 메소드

public InspectAllTypeInspector ( ) : System
리턴 System

ParseFieldInfo() 보호된 메소드

returns fieldInfo.GetValue(objectToInspect)
protected ParseFieldInfo ( object objectToInspect, FieldInfo fieldInfo ) : object
objectToInspect object
fieldInfo System.Reflection.FieldInfo
리턴 object

ParseMethodInfo() 보호된 메소드

returns methodInfo.ToString()
protected ParseMethodInfo ( object objectToInspect, MethodInfo methodInfo ) : object
objectToInspect object
methodInfo System.Reflection.MethodInfo
리턴 object

ParsePropertyInfo() 보호된 메소드

returns property.GetValue(instance, null)
protected ParsePropertyInfo ( object instance, PropertyInfo property ) : object
instance object
property System.Reflection.PropertyInfo
리턴 object

ShouldEvaluate() 보호된 메소드

If ShouldEvaluate returns true, the value will be evaluated for the member
protected ShouldEvaluate ( object instance, MemberInfo member ) : bool
instance object
member System.Reflection.MemberInfo
리턴 bool

ShouldInclude() 보호된 메소드

If ShouldInclude returns true (after member is evaluated), the member will be printed out
protected ShouldInclude ( object instance, ObjectInfo info ) : bool
instance object
info ObjectInfo
리턴 bool

ShouldInspect() 공개 메소드

If ShouldInspect returns true, this type inspector will be used to inspect the type
public ShouldInspect ( object objectToInspect, Type typeOfObjectToInspect ) : bool
objectToInspect object
typeOfObjectToInspect System.Type
리턴 bool