Exemple #1
0
 /// <summary>
 /// Gets the value of the static field specified by <paramref name="name"/> and matching <paramref name="bindingFlags"/>
 /// of the given <paramref name="type"/>.
 /// </summary>
 public static object GetFieldValue(this Type type, string name, Flags bindingFlags)
 {
     return(DelegateForGetStaticFieldValue(type, name, bindingFlags)());
 }
Exemple #2
0
 /// <summary>
 /// Gets the value of the static field specified by <paramref name="name"/> of the given <paramref name="type"/>.
 /// </summary>
 public static object GetFieldValue(this Type type, string name)
 {
     return(DelegateForGetStaticFieldValue(type, name)());
 }