C#Reflection – field details
C#The Type and FieldInfo that reflect the public field related classes are reflected.
Get related public fields
public FieldInfo[] GetFields();//Get all public field collections
public abstract FieldInfo[] GetFields(BindingFlags bindingAttr);//Gets the type constraint word.
public FieldInfo GetField(string name);//Gets the field of the specified name
public abstract FieldInfo GetField(string name, BindingFlags bindingAttr);//Gets the field of the specified name and constraint.
Assign values to object instance fields
public abstract object GetValue(object obj);
public virtual object GetValueDirect(TypedReference obj);
public void SetValue(object obj, object value);
public abstract void SetValue(object obj, object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture);