Class TypeIntrospectionProviderExtensions
Provides a set of extension methods for ITypeIntrospectionProvider.
Inheritance
Namespace: System.Reflection
Assembly: Nuqleon.Reflection.Virtualization.dll
Syntax
public static class TypeIntrospectionProviderExtensions : Object
Methods
GetConstructor(ITypeIntrospectionProvider, Type, BindingFlags, Binder, Type[], ParameterModifier[])
Searches for a constructor whose parameters match the specified argument types and modifiers, using the specified binding constraints.
Declaration
public static ConstructorInfo GetConstructor(this ITypeIntrospectionProvider provider, Type type, BindingFlags bindingAttr, Binder binder, Type[] types, ParameterModifier[] modifiers)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to get the constructor for. |
System.Reflection.BindingFlags | bindingAttr | A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted. |
System.Reflection.Binder | binder | An object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection.-or- A null reference, to use the System.Type.DefaultBinder. |
System.Type[] | types | An array of System.Type objects representing the number, order, and type of the parameters for the constructor to get.-or- An empty array of the type System.Type to get a constructor that takes no parameters. |
System.Reflection.ParameterModifier[] | modifiers | An array of System.Reflection.ParameterModifier objects representing the attributes associated with the corresponding element in the |
Returns
Type | Description |
---|---|
System.Reflection.ConstructorInfo | An object representing the constructor that matches the specified requirements, if found; otherwise, null. |
GetConstructor(ITypeIntrospectionProvider, Type, Type[])
Searches for a public instance constructor whose parameters match the specified argument types.
Declaration
public static ConstructorInfo GetConstructor(this ITypeIntrospectionProvider provider, Type type, Type[] types)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to get the constructor for. |
System.Type[] | types | An array of System.Type objects representing the number, order, and type of the parameters for the constructor to get.-or- An empty array of the type System.Type to get a constructor that takes no parameters. |
Returns
Type | Description |
---|---|
System.Reflection.ConstructorInfo | An object representing the constructor that matches the specified requirements, if found; otherwise, null. |
GetConstructors(ITypeIntrospectionProvider, Type)
Returns all the public the constructors defined for the specified type.
Declaration
public static IReadOnlyList<ConstructorInfo> GetConstructors(this ITypeIntrospectionProvider provider, Type type)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to get the constructors for. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<System.Reflection.ConstructorInfo> | An array of System.Reflection.ConstructorInfo objects representing all the public constructors defined for the specified type.-or- An empty array of type System.Reflection.ConstructorInfo, if no public constructors are defined for the specified type, or if none of the defined constructors match the binding constraints. |
GetEvent(ITypeIntrospectionProvider, Type, String)
Searches for a public event with the specified name.
Declaration
public static EventInfo GetEvent(this ITypeIntrospectionProvider provider, Type type, string name)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to get the event for. |
System.String | name | The name of the event to search for. |
Returns
Type | Description |
---|---|
System.Reflection.EventInfo | An object representing the event that matches the specified requirements, if found; otherwise, null. |
GetEvents(ITypeIntrospectionProvider, Type)
Returns all the public events that are declared or inherited by the specified type.
Declaration
public static IReadOnlyList<EventInfo> GetEvents(this ITypeIntrospectionProvider provider, Type type)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to get the events for. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<System.Reflection.EventInfo> | An array of System.Reflection.EventInfo objects representing all the public events defined for the specified type.-or- An empty array of type System.Reflection.EventInfo, if no public events are defined for the specified type, or if none of the defined events match the binding constraints. |
GetField(ITypeIntrospectionProvider, Type, String)
Searches for a public field with the specified name.
Declaration
public static FieldInfo GetField(this ITypeIntrospectionProvider provider, Type type, string name)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to get the field for. |
System.String | name | The name of the field to search for. |
Returns
Type | Description |
---|---|
System.Reflection.FieldInfo | An object representing the field that matches the specified requirements, if found; otherwise, null. |
GetFields(ITypeIntrospectionProvider, Type)
Returns all the public fields defined for the specified type.
Declaration
public static IReadOnlyList<FieldInfo> GetFields(this ITypeIntrospectionProvider provider, Type type)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to get the fields for. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<System.Reflection.FieldInfo> | An array of System.Reflection.FieldInfo objects representing all the public fields defined for the specified type.-or- An empty array of type System.Reflection.FieldInfo, if no public fields are defined for the specified type. |
GetInterface(ITypeIntrospectionProvider, Type, String)
Searches for the interface with the specified name.
Declaration
public static Type GetInterface(this ITypeIntrospectionProvider provider, Type type, string name)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to get the interface for. |
System.String | name | The string containing the name of the interface to get. For generic interfaces, this is the mangled name. |
Returns
Type | Description |
---|---|
System.Type | An object representing the interface with the specified name, implemented or inherited by the specified type, if found; otherwise, null. |
GetMember(ITypeIntrospectionProvider, Type, String)
Searches for the public members with the specified name.
Declaration
public static IReadOnlyList<MemberInfo> GetMember(this ITypeIntrospectionProvider provider, Type type, string name)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to get the members for. |
System.String | name | The string containing the name of the members to get. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<System.Reflection.MemberInfo> | An array of System.Reflection.MemberInfo objects representing the members with the specified name, if found; otherwise, an empty array. |
GetMember(ITypeIntrospectionProvider, Type, String, BindingFlags)
Searches for the specified members, using the specified binding constraints.
Declaration
public static IReadOnlyList<MemberInfo> GetMember(this ITypeIntrospectionProvider provider, Type type, string name, BindingFlags bindingAttr)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to get the members for. |
System.String | name | The string containing the name of the members to get. |
System.Reflection.BindingFlags | bindingAttr | A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<System.Reflection.MemberInfo> | An array of System.Reflection.MemberInfo objects representing the members with the specified name, if found; otherwise, an empty array. |
GetMembers(ITypeIntrospectionProvider, Type)
Returns all the public members defined for the specified type.
Declaration
public static IReadOnlyList<MemberInfo> GetMembers(this ITypeIntrospectionProvider provider, Type type)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to get the members for. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<System.Reflection.MemberInfo> | An array of System.Reflection.MemberInfo objects representing all the public members defined for the specified type.-or- An empty array of type System.Reflection.MemberInfo, if no public members are defined for the specified type. |
GetMethod(ITypeIntrospectionProvider, Type, String)
Searches for the public method with the specified name.
Declaration
public static MethodInfo GetMethod(this ITypeIntrospectionProvider provider, Type type, string name)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to get the method for. |
System.String | name | The string containing the name of the method to get. |
Returns
Type | Description |
---|---|
System.Reflection.MethodInfo | An object representing the method that matches the specified requirements, if found; otherwise, null. |
GetMethod(ITypeIntrospectionProvider, Type, String, Int32, BindingFlags, Binder, Type[], ParameterModifier[])
Searches for the specified method whose parameters match the specified generic parameter count, argument types and modifiers, using the specified binding constraints.
Declaration
public static MethodInfo GetMethod(this ITypeIntrospectionProvider provider, Type type, string name, int genericParameterCount, BindingFlags bindingAttr, Binder binder, Type[] types, ParameterModifier[] modifiers)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to get the method for. |
System.String | name | The string containing the name of the method to get. |
System.Int32 | genericParameterCount | The number of generic type parameters of the method. |
System.Reflection.BindingFlags | bindingAttr | A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted. |
System.Reflection.Binder | binder | An object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection.-or- A null reference, to use the System.Type.DefaultBinder. |
System.Type[] | types | An array of System.Type objects representing the number, order, and type of the parameters for the method to get.-or- An empty array of the type System.Type to get a method that takes no parameters. |
System.Reflection.ParameterModifier[] | modifiers | An array of System.Reflection.ParameterModifier objects representing the attributes associated with the corresponding element in the |
Returns
Type | Description |
---|---|
System.Reflection.MethodInfo | An object representing the method that matches the specified requirements, if found; otherwise, null. |
GetMethod(ITypeIntrospectionProvider, Type, String, Int32, Type[])
Searches for the specified public method whose parameters match the specified generic parameter count and argument types.
Declaration
public static MethodInfo GetMethod(this ITypeIntrospectionProvider provider, Type type, string name, int genericParameterCount, Type[] types)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to get the method for. |
System.String | name | The string containing the name of the method to get. |
System.Int32 | genericParameterCount | The number of generic type parameters of the method. |
System.Type[] | types | An array of System.Type objects representing the number, order, and type of the parameters for the method to get.-or- An empty array of the type System.Type to get a method that takes no parameters. |
Returns
Type | Description |
---|---|
System.Reflection.MethodInfo | An object representing the method that matches the specified requirements, if found; otherwise, null. |
GetMethod(ITypeIntrospectionProvider, Type, String, Int32, Type[], ParameterModifier[])
Searches for the specified public method whose parameters match the specified generic parameter count, argument types and modifiers.
Declaration
public static MethodInfo GetMethod(this ITypeIntrospectionProvider provider, Type type, string name, int genericParameterCount, Type[] types, ParameterModifier[] modifiers)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to get the method for. |
System.String | name | The string containing the name of the method to get. |
System.Int32 | genericParameterCount | The number of generic type parameters of the method. |
System.Type[] | types | An array of System.Type objects representing the number, order, and type of the parameters for the method to get.-or- An empty array of the type System.Type to get a method that takes no parameters. |
System.Reflection.ParameterModifier[] | modifiers | An array of System.Reflection.ParameterModifier objects representing the attributes associated with the corresponding element in the |
Returns
Type | Description |
---|---|
System.Reflection.MethodInfo | An object representing the method that matches the specified requirements, if found; otherwise, null. |
GetMethod(ITypeIntrospectionProvider, Type, String, BindingFlags, Binder, Type[], ParameterModifier[])
Searches for the specified method whose parameters match the specified argument types and modifiers, using the specified binding constraints.
Declaration
public static MethodInfo GetMethod(this ITypeIntrospectionProvider provider, Type type, string name, BindingFlags bindingAttr, Binder binder, Type[] types, ParameterModifier[] modifiers)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to get the method for. |
System.String | name | The string containing the name of the method to get. |
System.Reflection.BindingFlags | bindingAttr | A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted. |
System.Reflection.Binder | binder | An object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection.-or- A null reference, to use the System.Type.DefaultBinder. |
System.Type[] | types | An array of System.Type objects representing the number, order, and type of the parameters for the method to get.-or- An empty array of the type System.Type to get a method that takes no parameters. |
System.Reflection.ParameterModifier[] | modifiers | An array of System.Reflection.ParameterModifier objects representing the attributes associated with the corresponding element in the |
Returns
Type | Description |
---|---|
System.Reflection.MethodInfo | An object representing the method that matches the specified requirements, if found; otherwise, null. |
GetMethod(ITypeIntrospectionProvider, Type, String, Type[])
Searches for the specified public method whose parameters match the specified argument types.
Declaration
public static MethodInfo GetMethod(this ITypeIntrospectionProvider provider, Type type, string name, Type[] types)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to get the method for. |
System.String | name | The string containing the name of the method to get. |
System.Type[] | types | An array of System.Type objects representing the number, order, and type of the parameters for the method to get.-or- An empty array of the type System.Type to get a method that takes no parameters. |
Returns
Type | Description |
---|---|
System.Reflection.MethodInfo | An object representing the method that matches the specified requirements, if found; otherwise, null. |
GetMethod(ITypeIntrospectionProvider, Type, String, Type[], ParameterModifier[])
Searches for the specified public method whose parameters match the specified argument types and modifiers.
Declaration
public static MethodInfo GetMethod(this ITypeIntrospectionProvider provider, Type type, string name, Type[] types, ParameterModifier[] modifiers)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to get the method for. |
System.String | name | The string containing the name of the method to get. |
System.Type[] | types | An array of System.Type objects representing the number, order, and type of the parameters for the method to get.-or- An empty array of the type System.Type to get a method that takes no parameters. |
System.Reflection.ParameterModifier[] | modifiers | An array of System.Reflection.ParameterModifier objects representing the attributes associated with the corresponding element in the |
Returns
Type | Description |
---|---|
System.Reflection.MethodInfo | An object representing the method that matches the specified requirements, if found; otherwise, null. |
GetMethods(ITypeIntrospectionProvider, Type)
Returns all the public methods defined for the specified type.
Declaration
public static IReadOnlyList<MethodInfo> GetMethods(this ITypeIntrospectionProvider provider, Type type)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to get the methods for. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<System.Reflection.MethodInfo> | An array of System.Reflection.MethodInfo objects representing all the public methods defined for the specified type.-or- An empty array of type System.Reflection.MethodInfo, if no public methods are defined for the specified type. |
GetNestedType(ITypeIntrospectionProvider, Type, String)
Searches for a public nested type with the specified name.
Declaration
public static Type GetNestedType(this ITypeIntrospectionProvider provider, Type type, string name)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to get the nested type for. |
System.String | name | The name of the nested type to search for. |
Returns
Type | Description |
---|---|
System.Type | An object representing the nested type that matches the specified requirements, if found; otherwise, null. |
GetNestedTypes(ITypeIntrospectionProvider, Type)
Returns all the public types nested in the specified type.
Declaration
public static IReadOnlyList<Type> GetNestedTypes(this ITypeIntrospectionProvider provider, Type type)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to get the nested types for. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<System.Type> | An array of System.Type objects representing all the public nested types defined for the specified type.-or- An empty array of type System.Type, if no public nested types are defined for the specified type. |
GetProperties(ITypeIntrospectionProvider, Type)
Returns all the public properties of for the specified type.
Declaration
public static IReadOnlyList<PropertyInfo> GetProperties(this ITypeIntrospectionProvider provider, Type type)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to get the properties for. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<System.Reflection.PropertyInfo> | An array of System.Reflection.PropertyInfo objects representing all the public properties defined for the specified type.-or- An empty array of type System.Reflection.PropertyInfo, if no public properties are defined for the specified type. |
GetProperty(ITypeIntrospectionProvider, Type, String)
Searches for the specified public property with the specified name.
Declaration
public static PropertyInfo GetProperty(this ITypeIntrospectionProvider provider, Type type, string name)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to get the property for. |
System.String | name | The string containing the name of the property to get. |
Returns
Type | Description |
---|---|
System.Reflection.PropertyInfo | An object representing the property that matches the specified requirements, if found; otherwise, null. |
GetProperty(ITypeIntrospectionProvider, Type, String, Type, Type[])
Searches for the specified public property whose parameters match the specified argument types.
Declaration
public static PropertyInfo GetProperty(this ITypeIntrospectionProvider provider, Type type, string name, Type returnType, Type[] types)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to get the property for. |
System.String | name | The string containing the name of the property to get. |
System.Type | returnType | The return type of the property. |
System.Type[] | types | An array of System.Type objects representing the number, order, and type of the parameters for the indexed property to get.-or- An empty array of the type System.Type to get a property that is not indexed. |
Returns
Type | Description |
---|---|
System.Reflection.PropertyInfo | An object representing the property that matches the specified requirements, if found; otherwise, null. |
GetProperty(ITypeIntrospectionProvider, Type, String, Type, Type[], ParameterModifier[])
Searches for the specified public property whose parameters match the specified argument types and modifiers.
Declaration
public static PropertyInfo GetProperty(this ITypeIntrospectionProvider provider, Type type, string name, Type returnType, Type[] types, ParameterModifier[] modifiers)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to get the property for. |
System.String | name | The string containing the name of the property to get. |
System.Type | returnType | The return type of the property. |
System.Type[] | types | An array of System.Type objects representing the number, order, and type of the parameters for the indexed property to get.-or- An empty array of the type System.Type to get a property that is not indexed. |
System.Reflection.ParameterModifier[] | modifiers | An array of System.Reflection.ParameterModifier objects representing the attributes associated with the corresponding element in the |
Returns
Type | Description |
---|---|
System.Reflection.PropertyInfo | An object representing the property that matches the specified requirements, if found; otherwise, null. |
GetProperty(ITypeIntrospectionProvider, Type, String, Type[])
Searches for the specified public property whose parameters match the specified argument types.
Declaration
public static PropertyInfo GetProperty(this ITypeIntrospectionProvider provider, Type type, string name, Type[] types)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to get the property for. |
System.String | name | The string containing the name of the property to get. |
System.Type[] | types | An array of System.Type objects representing the number, order, and type of the parameters for the indexed property to get.-or- An empty array of the type System.Type to get a property that is not indexed. |
Returns
Type | Description |
---|---|
System.Reflection.PropertyInfo | An object representing the property that matches the specified requirements, if found; otherwise, null. |
IsAbstract(ITypeIntrospectionProvider, Type)
Gets a value indicating whether the specified type
is abstract and must be overridden.
Declaration
public static bool IsAbstract(this ITypeIntrospectionProvider provider, Type type)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified |
IsAnsiClass(ITypeIntrospectionProvider, Type)
Gets a value indicating whether the string format attribute AnsiClass is selected for the specified type
.
Declaration
public static bool IsAnsiClass(this ITypeIntrospectionProvider provider, Type type)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the string format attribute AnsiClass is selected for the |
IsAutoClass(ITypeIntrospectionProvider, Type)
Gets a value indicating whether the string format attribute AutoClass is selected for the specified type
.
Declaration
public static bool IsAutoClass(this ITypeIntrospectionProvider provider, Type type)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the string format attribute AutoClass is selected for the |
IsAutoLayout(ITypeIntrospectionProvider, Type)
Gets a value indicating whether the class layout attribute AutoLayout is selected for the specified type
.
Declaration
public static bool IsAutoLayout(this ITypeIntrospectionProvider provider, Type type)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the class layout attribute AutoLayout is selected for the |
IsClass(ITypeIntrospectionProvider, Type)
Gets a value indicating whether the specified type
is a class; that is, not a value type or interface.
Declaration
public static bool IsClass(this ITypeIntrospectionProvider provider, Type type)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified |
IsExplicitLayout(ITypeIntrospectionProvider, Type)
Gets a value indicating whether the class layout attribute ExplicitLayout is selected for the specified type
.
Declaration
public static bool IsExplicitLayout(this ITypeIntrospectionProvider provider, Type type)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the class layout attribute ExplicitLayout is selected for the |
IsImport(ITypeIntrospectionProvider, Type)
Gets a value indicating whether the specified type
has a System.Runtime.InteropServices.ComImportAttribute attribute applied, indicating that it was imported from a COM type library.
Declaration
public static bool IsImport(this ITypeIntrospectionProvider provider, Type type)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified |
IsLayoutSequential(ITypeIntrospectionProvider, Type)
Gets a value indicating whether the class layout attribute SequentialLayout is selected for the specified type
.
Declaration
public static bool IsLayoutSequential(this ITypeIntrospectionProvider provider, Type type)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the class layout attribute SequentialLayout is selected for the |
IsNested(ITypeIntrospectionProvider, Type)
Gets a value indicating whether the specified type
object represents a type whose definition is nested inside the definition of another type.
Declaration
public static bool IsNested(this ITypeIntrospectionProvider provider, Type type)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified |
IsNestedAssembly(ITypeIntrospectionProvider, Type)
Gets a value indicating whether the specified type
is nested and visible only within its own assembly.
Declaration
public static bool IsNestedAssembly(this ITypeIntrospectionProvider provider, Type type)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified |
IsNestedFamANDAssem(ITypeIntrospectionProvider, Type)
Gets a value indicating whether the specified type
is nested and visible only to classes that belong to both its own family and its own assembly.
Declaration
public static bool IsNestedFamANDAssem(this ITypeIntrospectionProvider provider, Type type)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified |
IsNestedFamily(ITypeIntrospectionProvider, Type)
Gets a value indicating whether the specified type
is nested and visible only within its own family.
Declaration
public static bool IsNestedFamily(this ITypeIntrospectionProvider provider, Type type)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified |
IsNestedFamORAssem(ITypeIntrospectionProvider, Type)
Gets a value indicating whether the specified type
is nested and visible only to classes that belong to either its own family or to its own assembly.
Declaration
public static bool IsNestedFamORAssem(this ITypeIntrospectionProvider provider, Type type)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified |
IsNestedPrivate(ITypeIntrospectionProvider, Type)
Gets a value indicating whether the specified type
is nested and declared private.
Declaration
public static bool IsNestedPrivate(this ITypeIntrospectionProvider provider, Type type)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified |
IsNestedPublic(ITypeIntrospectionProvider, Type)
Gets a value indicating whether the specified type
is nested and declared public.
Declaration
public static bool IsNestedPublic(this ITypeIntrospectionProvider provider, Type type)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified |
IsNotPublic(ITypeIntrospectionProvider, Type)
Gets a value indicating whether the specified type
is not declared public.
Declaration
public static bool IsNotPublic(this ITypeIntrospectionProvider provider, Type type)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified |
IsPublic(ITypeIntrospectionProvider, Type)
Gets a value indicating whether the specified type
is declared public.
Declaration
public static bool IsPublic(this ITypeIntrospectionProvider provider, Type type)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified |
IsSealed(ITypeIntrospectionProvider, Type)
Gets a value indicating whether the specified type
is declared sealed.
Declaration
public static bool IsSealed(this ITypeIntrospectionProvider provider, Type type)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified |
IsSpecialName(ITypeIntrospectionProvider, Type)
Gets a value indicating whether the specified type
has a name that requires special handling.
Declaration
public static bool IsSpecialName(this ITypeIntrospectionProvider provider, Type type)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified |
IsUnicodeClass(ITypeIntrospectionProvider, Type)
Gets a value indicating whether the string format attribute UnicodeClass is selected for the specified type
.
Declaration
public static bool IsUnicodeClass(this ITypeIntrospectionProvider provider, Type type)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the string format attribute UnicodeClass is selected for the |
TypeInitializer(ITypeIntrospectionProvider, Type)
Gets the initializer for the specified type
.
Declaration
public static ConstructorInfo TypeInitializer(this ITypeIntrospectionProvider provider, Type type)
Parameters
Type | Name | Description |
---|---|---|
ITypeIntrospectionProvider | provider | The reflection introspection provider. |
System.Type | type | The type to get the initializer for. |
Returns
Type | Description |
---|---|
System.Reflection.ConstructorInfo | A System.Reflection.ConstructorInfo representing the class constructor for the specified |