Class TypeInfoAllMemberExtensions
Extension methods for TypeInfo.
Namespace: Evergine.Common.Helpers
Assembly: Evergine.Common.dll
Syntax
public static class TypeInfoAllMemberExtensions
Methods
GetAllConstructors(TypeInfo)
Get constructors of the type and its base types.
Declaration
public static IEnumerable<ConstructorInfo> GetAllConstructors(this TypeInfo typeInfo)
Parameters
Type | Name | Description |
---|---|---|
Type |
typeInfo | The type info. |
Returns
Type | Description |
---|---|
IEnumerable<Constructor |
All the constructors. |
GetAllEvents(TypeInfo)
Gets events of the type and its base types.
Declaration
public static IEnumerable<EventInfo> GetAllEvents(this TypeInfo typeInfo)
Parameters
Type | Name | Description |
---|---|---|
Type |
typeInfo | The type info. |
Returns
Type | Description |
---|---|
IEnumerable<Event |
All the events. |
GetAllFields(TypeInfo)
Gets fields of the type and its base types.
Declaration
public static IEnumerable<FieldInfo> GetAllFields(this TypeInfo typeInfo)
Parameters
Type | Name | Description |
---|---|---|
Type |
typeInfo | The type info. |
Returns
Type | Description |
---|---|
IEnumerable<Field |
All the fields. |
GetAllMembers(TypeInfo)
Gets members of the type and its base types.
Declaration
public static IEnumerable<MemberInfo> GetAllMembers(this TypeInfo typeInfo)
Parameters
Type | Name | Description |
---|---|---|
Type |
typeInfo | The type info. |
Returns
Type | Description |
---|---|
IEnumerable<Member |
All the members. |
GetAllMethods(TypeInfo)
Gets methods of the type and its base types.
Declaration
public static IEnumerable<MethodInfo> GetAllMethods(this TypeInfo typeInfo)
Parameters
Type | Name | Description |
---|---|---|
Type |
typeInfo | The type info. |
Returns
Type | Description |
---|---|
IEnumerable<Method |
All the methods. |
GetAllNestedTypes(TypeInfo)
Gets nested types of the type and its base types.
Declaration
public static IEnumerable<TypeInfo> GetAllNestedTypes(this TypeInfo typeInfo)
Parameters
Type | Name | Description |
---|---|---|
Type |
typeInfo | The type info. |
Returns
Type | Description |
---|---|
IEnumerable<Type |
All the nested types. |
GetAllProperties(TypeInfo)
Gets properties of the type and its base types.
Declaration
public static IEnumerable<PropertyInfo> GetAllProperties(this TypeInfo typeInfo)
Parameters
Type | Name | Description |
---|---|---|
Type |
typeInfo | The type info. |
Returns
Type | Description |
---|---|
IEnumerable<Property |
All the properties. |