Ejemplo n.º 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));
Ejemplo n.º 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));