Beispiel #1
0
 /// <summary>
 /// Retrieves FieldInfo[] (public) for the given type
 /// </summary>
 /// <param name="targetType">Type of the target.</param>
 /// <returns>Value of a field supported by a given object</returns>
 private static FieldInfo[] RetrieveFields(Type targetType)
 => Runtime.FieldTypeCache.Value.Retrieve(targetType, FieldTypeCache.GetAllFieldsFunc(targetType));
Beispiel #2
0
 /// <summary>
 /// Retrieves FieldInfo[] (public) for the given type
 /// </summary>
 /// <param name="type">The type.</param>
 /// <returns>Value of a field supported by a given object</returns>
 private static FieldInfo[] RetrieveFields(Type type)
 => FieldTypeCache.Retrieve(type, FieldTypeCache.GetAllFieldsFunc(type));