C# Class StatePrinting.FieldHarvesters.SanitizedFieldInfo

For each type we print, we hold the reflected and the readable version of the fields
Show file Open project: kbilsted/StatePrinter Class Usage Examples

Public Properties

Property Type Description
FieldInfo System.Reflection.MemberInfo
SanitizedName string
ValueProvider object>.Func

Public Methods

Method Description
SanitizedFieldInfo ( MemberInfo fieldInfo, string sanitizedName, object>.Func valueProvider ) : System

Method Details

SanitizedFieldInfo() public method

public SanitizedFieldInfo ( MemberInfo fieldInfo, string sanitizedName, object>.Func valueProvider ) : System
fieldInfo System.Reflection.MemberInfo
sanitizedName string
valueProvider object>.Func
return System

Property Details

FieldInfo public property

public MemberInfo,System.Reflection FieldInfo
return System.Reflection.MemberInfo

SanitizedName public property

The sanitized name is the name the user would expect. E.g. the field 'X' has the value 'X' and the property 'Y' has the value 'Y' rather than the value '<Y>k__BackingField'.
public string SanitizedName
return string

ValueProvider public property

Functionality to fetch the value of the field.
public Func ValueProvider
return object>.Func