Пример #1
0
 public static IEnumerable <EventInfo> GetAllEvents(this TypeInfo typeInfo)
 => typeInfo.GetAll(ti => ti.DeclaredEvents);
Пример #2
0
 public static IEnumerable <ConstructorInfo> GetAllConstructors(this TypeInfo typeInfo)
 => typeInfo.GetAll(ti => ti.DeclaredConstructors);
Пример #3
0
 public static IEnumerable <PropertyInfo> GetAllProperties(this TypeInfo typeInfo)
 => typeInfo.GetAll(ti => ti.DeclaredProperties);
Пример #4
0
 public static IEnumerable <TypeInfo> GetAllNestedTypes(this TypeInfo typeInfo)
 => typeInfo.GetAll(ti => ti.DeclaredNestedTypes);
Пример #5
0
 public static IEnumerable <MethodInfo> GetAllMethods(this TypeInfo typeInfo)
 => typeInfo.GetAll(ti => ti.DeclaredMethods);
Пример #6
0
 public static IEnumerable <FieldInfo> GetAllFields(this TypeInfo typeInfo)
 => typeInfo.GetAll(ti => ti.DeclaredFields);