예제 #1
0
 /// <summary>
 /// Gets all public and non-public instance fields and properties on the given <paramref name="type"/>
 /// that match the specified <paramref name="bindingFlags"/>, including members defined on base types.
 /// </summary>
 /// <returns>A list of all matching members on the type. This value will never be null.</returns>
 public static IList <MemberInfo> FieldsAndProperties(this Type type, FasterflectFlags bindingFlags)
 {
     return(ReflectLookup.FieldsAndProperties(type, bindingFlags));
 }
예제 #2
0
 /// <summary>
 /// Gets all public and non-public instance fields and properties on the given <paramref name="type"/>,
 /// including members defined on base types.
 /// </summary>
 /// <returns>A list of all matching members on the type. This value will never be null.</returns>
 public static IList <MemberInfo> FieldsAndProperties(this Type type)
 {
     return(ReflectLookup.FieldsAndProperties(type));
 }