示例#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));
示例#2
0
文件: Json.cs 项目: rflechner/swan
 /// <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));