Class GenericParamType
Represents the generic parameter
Inheritance
System.Object
System.Reflection.MemberInfo
System.Type
GenericParamType
Implements
System.Reflection.ICustomAttributeProvider
System.Runtime.InteropServices._MemberInfo
System.Runtime.InteropServices._Type
System.Reflection.IReflect
Inherited Members
System.Type.FilterAttribute
System.Type.FilterName
System.Type.FilterNameIgnoreCase
System.Type.Missing
System.Type.Delimiter
System.Type.EmptyTypes
System.Type.GetType(System.String, System.Boolean, System.Boolean)
System.Type.GetType(System.String, System.Boolean)
System.Type.GetType(System.String)
System.Type.GetType(System.String, System.Func<System.Reflection.AssemblyName, System.Reflection.Assembly>, System.Func<System.Reflection.Assembly, System.String, System.Boolean, System.Type>)
System.Type.GetType(System.String, System.Func<System.Reflection.AssemblyName, System.Reflection.Assembly>, System.Func<System.Reflection.Assembly, System.String, System.Boolean, System.Type>, System.Boolean)
System.Type.GetType(System.String, System.Func<System.Reflection.AssemblyName, System.Reflection.Assembly>, System.Func<System.Reflection.Assembly, System.String, System.Boolean, System.Type>, System.Boolean, System.Boolean)
System.Type.ReflectionOnlyGetType(System.String, System.Boolean, System.Boolean)
System.Type.MakeArrayType(System.Int32)
System.Type.GetTypeFromProgID(System.String)
System.Type.GetTypeFromProgID(System.String, System.Boolean)
System.Type.GetTypeFromProgID(System.String, System.String)
System.Type.GetTypeFromProgID(System.String, System.String, System.Boolean)
System.Type.GetTypeFromCLSID(System.Guid)
System.Type.GetTypeFromCLSID(System.Guid, System.Boolean)
System.Type.GetTypeFromCLSID(System.Guid, System.String)
System.Type.GetTypeFromCLSID(System.Guid, System.String, System.Boolean)
System.Type.GetTypeCode(System.Type)
System.Type.GetTypeCodeImpl()
System.Type.InvokeMember(System.String, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object, System.Object[], System.Globalization.CultureInfo)
System.Type.InvokeMember(System.String, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object, System.Object[])
System.Type.GetTypeHandle(System.Object)
System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)
System.Type.GetConstructor(System.Reflection.BindingFlags, System.Reflection.Binder, System.Reflection.CallingConventions, System.Type[], System.Reflection.ParameterModifier[])
System.Type.GetConstructor(System.Reflection.BindingFlags, System.Reflection.Binder, System.Type[], System.Reflection.ParameterModifier[])
System.Type.GetConstructor(System.Type[])
System.Type.GetConstructors()
System.Type.GetMethod(System.String, System.Reflection.BindingFlags, System.Reflection.Binder, System.Reflection.CallingConventions, System.Type[], System.Reflection.ParameterModifier[])
System.Type.GetMethod(System.String, System.Reflection.BindingFlags, System.Reflection.Binder, System.Type[], System.Reflection.ParameterModifier[])
System.Type.GetMethod(System.String, System.Type[], System.Reflection.ParameterModifier[])
System.Type.GetMethod(System.String, System.Type[])
System.Type.GetMethod(System.String, System.Reflection.BindingFlags)
System.Type.GetMethod(System.String)
System.Type.GetMethods()
System.Type.GetField(System.String)
System.Type.GetFields()
System.Type.GetInterface(System.String)
System.Type.FindInterfaces(System.Reflection.TypeFilter, System.Object)
System.Type.GetEvent(System.String)
System.Type.GetEvents()
System.Type.GetProperty(System.String, System.Reflection.BindingFlags, System.Reflection.Binder, System.Type, System.Type[], System.Reflection.ParameterModifier[])
System.Type.GetProperty(System.String, System.Type, System.Type[], System.Reflection.ParameterModifier[])
System.Type.GetProperty(System.String, System.Reflection.BindingFlags)
System.Type.GetProperty(System.String, System.Type, System.Type[])
System.Type.GetProperty(System.String, System.Type[])
System.Type.GetProperty(System.String, System.Type)
System.Type.GetProperty(System.String)
System.Type.GetProperties()
System.Type.GetNestedTypes()
System.Type.GetNestedType(System.String)
System.Type.GetMember(System.String)
System.Type.GetMember(System.String, System.Reflection.MemberTypes, System.Reflection.BindingFlags)
System.Type.GetMembers()
System.Type.GetDefaultMembers()
System.Type.FindMembers(System.Reflection.MemberTypes, System.Reflection.BindingFlags, System.Reflection.MemberFilter, System.Object)
System.Type.IsValueTypeImpl()
System.Type.MakeGenericType(System.Type[])
System.Type.IsContextfulImpl()
System.Type.IsMarshalByRefImpl()
System.Type.GetGenericArguments()
System.Type.GetGenericTypeDefinition()
System.Type.GetEnumNames()
System.Type.GetEnumValues()
System.Type.GetEnumUnderlyingType()
System.Type.IsEnumDefined(System.Object)
System.Type.GetEnumName(System.Object)
System.Type.IsSubclassOf(System.Type)
System.Type.IsInstanceOfType(System.Object)
System.Type.IsAssignableFrom(System.Type)
System.Type.IsEquivalentTo(System.Type)
System.Type.ToString()
System.Type.GetTypeArray(System.Object[])
System.Type.Equals(System.Object)
System.Type.Equals(System.Type)
System.Type.GetHashCode()
System.Type.GetInterfaceMap(System.Type)
System.Type.GetType()
System.Type.System.Runtime.InteropServices._Type.GetTypeInfoCount(System.UInt32)
System.Type.System.Runtime.InteropServices._Type.GetTypeInfo(System.UInt32, System.UInt32, System.IntPtr)
System.Type.System.Runtime.InteropServices._Type.GetIDsOfNames(System.Guid, System.IntPtr, System.UInt32, System.UInt32, System.IntPtr)
System.Type.System.Runtime.InteropServices._Type.Invoke(System.UInt32, System.Guid, System.UInt32, System.Int16, System.IntPtr, System.IntPtr, System.IntPtr, System.IntPtr)
System.Type.MemberType
System.Type.ReflectedType
System.Type.StructLayoutAttribute
System.Type.DefaultBinder
System.Type.TypeHandle
System.Type.TypeInitializer
System.Type.IsNested
System.Type.Attributes
System.Type.IsVisible
System.Type.IsNotPublic
System.Type.IsPublic
System.Type.IsNestedPublic
System.Type.IsNestedPrivate
System.Type.IsNestedFamily
System.Type.IsNestedAssembly
System.Type.IsNestedFamANDAssem
System.Type.IsNestedFamORAssem
System.Type.IsAutoLayout
System.Type.IsLayoutSequential
System.Type.IsExplicitLayout
System.Type.IsClass
System.Type.IsInterface
System.Type.IsValueType
System.Type.IsAbstract
System.Type.IsSealed
System.Type.IsEnum
System.Type.IsSpecialName
System.Type.IsImport
System.Type.IsSerializable
System.Type.IsAnsiClass
System.Type.IsUnicodeClass
System.Type.IsAutoClass
System.Type.IsArray
System.Type.IsGenericType
System.Type.IsGenericTypeDefinition
System.Type.IsConstructedGenericType
System.Type.ContainsGenericParameters
System.Type.IsByRef
System.Type.IsPointer
System.Type.IsPrimitive
System.Type.IsCOMObject
System.Type.HasElementType
System.Type.IsContextful
System.Type.IsMarshalByRef
System.Type.GenericTypeArguments
System.Type.IsSecurityCritical
System.Type.IsSecuritySafeCritical
System.Type.IsSecurityTransparent
System.Reflection.MemberInfo.GetCustomAttributesData()
System.Reflection.MemberInfo.System.Runtime.InteropServices._MemberInfo.GetType()
System.Reflection.MemberInfo.System.Runtime.InteropServices._MemberInfo.GetTypeInfoCount(System.UInt32)
System.Reflection.MemberInfo.System.Runtime.InteropServices._MemberInfo.GetTypeInfo(System.UInt32, System.UInt32, System.IntPtr)
System.Reflection.MemberInfo.System.Runtime.InteropServices._MemberInfo.GetIDsOfNames(System.Guid, System.IntPtr, System.UInt32, System.UInt32, System.IntPtr)
System.Reflection.MemberInfo.System.Runtime.InteropServices._MemberInfo.Invoke(System.UInt32, System.Guid, System.UInt32, System.Int16, System.IntPtr, System.IntPtr, System.IntPtr, System.IntPtr)
System.Reflection.MemberInfo.CustomAttributes
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.MemberwiseClone()
Assembly: CilTools.BytecodeAnalysis.dll
public class GenericParamType : Type, ICustomAttributeProvider, _MemberInfo, _Type, IReflect
Constructors
Creates a new instance of the generic parameter
Declaration
public GenericParamType(MethodBase m, int index)
Parameters
Type |
Name |
Description |
System.Reflection.MethodBase |
m |
Declaring method, if this is a generic method parameter
|
System.Int32 |
index |
Generic parameter index
|
Creates a new instance of the generic parameter with the specified name
Declaration
public GenericParamType(MethodBase m, int index, string name)
Parameters
Type |
Name |
Description |
System.Reflection.MethodBase |
m |
Declaring method, if this is a generic method parameter
|
System.Int32 |
index |
Generic parameter index
|
System.String |
name |
Generic parameter name
|
Properties
Declaration
public override Assembly Assembly { get; }
Property Value
Type |
Description |
System.Reflection.Assembly |
|
Overrides
System.Type.Assembly
Declaration
public override string AssemblyQualifiedName { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
System.Type.AssemblyQualifiedName
Declaration
public override Type BaseType { get; }
Property Value
Type |
Description |
System.Type |
|
Overrides
System.Type.BaseType
Declaration
public override MethodBase DeclaringMethod { get; }
Property Value
Type |
Description |
System.Reflection.MethodBase |
|
Overrides
System.Type.DeclaringMethod
Declaration
public override Type DeclaringType { get; }
Property Value
Type |
Description |
System.Type |
|
Overrides
System.Type.DeclaringType
Declaration
public override string FullName { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
System.Type.FullName
Declaration
public override GenericParameterAttributes GenericParameterAttributes { get; }
Property Value
Type |
Description |
System.Reflection.GenericParameterAttributes |
|
Overrides
System.Type.GenericParameterAttributes
Declaration
public override int GenericParameterPosition { get; }
Property Value
Type |
Description |
System.Int32 |
|
Overrides
System.Type.GenericParameterPosition
Declaration
public override Guid GUID { get; }
Property Value
Type |
Description |
System.Guid |
|
Overrides
System.Type.GUID
Declaration
public override bool IsGenericParameter { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
System.Type.IsGenericParameter
Declaration
public override int MetadataToken { get; }
Property Value
Type |
Description |
System.Int32 |
|
Overrides
System.Reflection.MemberInfo.MetadataToken
Declaration
public override Module Module { get; }
Property Value
Type |
Description |
System.Reflection.Module |
|
Overrides
System.Type.Module
Declaration
public override string Name { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
System.Reflection.MemberInfo.Name
Declaration
public override string Namespace { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
System.Type.Namespace
Declaration
public override Type UnderlyingSystemType { get; }
Property Value
Type |
Description |
System.Type |
|
Overrides
System.Type.UnderlyingSystemType
Methods
Creates a new instance of the generic parameter
Declaration
public static GenericParamType Create(MemberInfo declaringMember, int index, string name)
Parameters
Type |
Name |
Description |
System.Reflection.MemberInfo |
declaringMember |
Declaring generic type or method of this parameter
|
System.Int32 |
index |
Generic parameter index
|
System.String |
name |
Generic parameter name, or null to fill name automatically
|
Returns
Creates a new instance of the generic parameter with specified attributes and constraints
Declaration
public static GenericParamType Create(MemberInfo declaringMember, int index, string name, GenericParameterAttributes attrs, Type[] constrains)
Parameters
Type |
Name |
Description |
System.Reflection.MemberInfo |
declaringMember |
Declaring generic type or method of this parameter
|
System.Int32 |
index |
Generic parameter index
|
System.String |
name |
Generic parameter name, or null to fill name automatically
|
System.Reflection.GenericParameterAttributes |
attrs |
Flags defining variance and constraint attributes of this parameter
|
System.Type[] |
constrains |
Array of types representing base type constraints of this parameter, or empty array if there are none
|
Returns
Declaration
public override int GetArrayRank()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Type.GetArrayRank()
Declaration
protected override TypeAttributes GetAttributeFlagsImpl()
Returns
Type |
Description |
System.Reflection.TypeAttributes |
|
Overrides
System.Type.GetAttributeFlagsImpl()
Declaration
protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
Parameters
Type |
Name |
Description |
System.Reflection.BindingFlags |
bindingAttr |
|
System.Reflection.Binder |
binder |
|
System.Reflection.CallingConventions |
callConvention |
|
System.Type[] |
types |
|
System.Reflection.ParameterModifier[] |
modifiers |
|
Returns
Type |
Description |
System.Reflection.ConstructorInfo |
|
Overrides
System.Type.GetConstructorImpl(System.Reflection.BindingFlags, System.Reflection.Binder, System.Reflection.CallingConventions, System.Type[], System.Reflection.ParameterModifier[])
Declaration
public override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr)
Parameters
Type |
Name |
Description |
System.Reflection.BindingFlags |
bindingAttr |
|
Returns
Type |
Description |
System.Reflection.ConstructorInfo[] |
|
Overrides
System.Type.GetConstructors(System.Reflection.BindingFlags)
Declaration
public override object[] GetCustomAttributes(bool inherit)
Parameters
Type |
Name |
Description |
System.Boolean |
inherit |
|
Returns
Type |
Description |
System.Object[] |
|
Overrides
System.Reflection.MemberInfo.GetCustomAttributes(System.Boolean)
Declaration
public override object[] GetCustomAttributes(Type attributeType, bool inherit)
Parameters
Type |
Name |
Description |
System.Type |
attributeType |
|
System.Boolean |
inherit |
|
Returns
Type |
Description |
System.Object[] |
|
Overrides
System.Reflection.MemberInfo.GetCustomAttributes(System.Type, System.Boolean)
Declaration
public override Type GetElementType()
Returns
Type |
Description |
System.Type |
|
Overrides
System.Type.GetElementType()
Declaration
public override EventInfo GetEvent(string name, BindingFlags bindingAttr)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Reflection.BindingFlags |
bindingAttr |
|
Returns
Type |
Description |
System.Reflection.EventInfo |
|
Overrides
System.Type.GetEvent(System.String, System.Reflection.BindingFlags)
Declaration
public override EventInfo[] GetEvents(BindingFlags bindingAttr)
Parameters
Type |
Name |
Description |
System.Reflection.BindingFlags |
bindingAttr |
|
Returns
Type |
Description |
System.Reflection.EventInfo[] |
|
Overrides
System.Type.GetEvents(System.Reflection.BindingFlags)
Declaration
public override FieldInfo GetField(string name, BindingFlags bindingAttr)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Reflection.BindingFlags |
bindingAttr |
|
Returns
Type |
Description |
System.Reflection.FieldInfo |
|
Overrides
System.Type.GetField(System.String, System.Reflection.BindingFlags)
Declaration
public override FieldInfo[] GetFields(BindingFlags bindingAttr)
Parameters
Type |
Name |
Description |
System.Reflection.BindingFlags |
bindingAttr |
|
Returns
Type |
Description |
System.Reflection.FieldInfo[] |
|
Overrides
System.Type.GetFields(System.Reflection.BindingFlags)
Declaration
public override Type[] GetGenericParameterConstraints()
Returns
Type |
Description |
System.Type[] |
|
Overrides
System.Type.GetGenericParameterConstraints()
Declaration
public override Type GetInterface(string name, bool ignoreCase)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Boolean |
ignoreCase |
|
Returns
Type |
Description |
System.Type |
|
Overrides
System.Type.GetInterface(System.String, System.Boolean)
Declaration
public override Type[] GetInterfaces()
Returns
Type |
Description |
System.Type[] |
|
Overrides
System.Type.GetInterfaces()
Declaration
public override MemberInfo[] GetMember(string name, BindingFlags bindingAttr)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Reflection.BindingFlags |
bindingAttr |
|
Returns
Type |
Description |
System.Reflection.MemberInfo[] |
|
Overrides
System.Type.GetMember(System.String, System.Reflection.BindingFlags)
Declaration
public override MemberInfo[] GetMembers(BindingFlags bindingAttr)
Parameters
Type |
Name |
Description |
System.Reflection.BindingFlags |
bindingAttr |
|
Returns
Type |
Description |
System.Reflection.MemberInfo[] |
|
Overrides
System.Type.GetMembers(System.Reflection.BindingFlags)
Declaration
protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Reflection.BindingFlags |
bindingAttr |
|
System.Reflection.Binder |
binder |
|
System.Reflection.CallingConventions |
callConvention |
|
System.Type[] |
types |
|
System.Reflection.ParameterModifier[] |
modifiers |
|
Returns
Type |
Description |
System.Reflection.MethodInfo |
|
Overrides
System.Type.GetMethodImpl(System.String, System.Reflection.BindingFlags, System.Reflection.Binder, System.Reflection.CallingConventions, System.Type[], System.Reflection.ParameterModifier[])
Declaration
public override MethodInfo[] GetMethods(BindingFlags bindingAttr)
Parameters
Type |
Name |
Description |
System.Reflection.BindingFlags |
bindingAttr |
|
Returns
Type |
Description |
System.Reflection.MethodInfo[] |
|
Overrides
System.Type.GetMethods(System.Reflection.BindingFlags)
Declaration
public override Type GetNestedType(string name, BindingFlags bindingAttr)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Reflection.BindingFlags |
bindingAttr |
|
Returns
Type |
Description |
System.Type |
|
Overrides
System.Type.GetNestedType(System.String, System.Reflection.BindingFlags)
Declaration
public override Type[] GetNestedTypes(BindingFlags bindingAttr)
Parameters
Type |
Name |
Description |
System.Reflection.BindingFlags |
bindingAttr |
|
Returns
Type |
Description |
System.Type[] |
|
Overrides
System.Type.GetNestedTypes(System.Reflection.BindingFlags)
Declaration
public override PropertyInfo[] GetProperties(BindingFlags bindingAttr)
Parameters
Type |
Name |
Description |
System.Reflection.BindingFlags |
bindingAttr |
|
Returns
Type |
Description |
System.Reflection.PropertyInfo[] |
|
Overrides
System.Type.GetProperties(System.Reflection.BindingFlags)
Declaration
protected override PropertyInfo GetPropertyImpl(string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Reflection.BindingFlags |
bindingAttr |
|
System.Reflection.Binder |
binder |
|
System.Type |
returnType |
|
System.Type[] |
types |
|
System.Reflection.ParameterModifier[] |
modifiers |
|
Returns
Type |
Description |
System.Reflection.PropertyInfo |
|
Overrides
System.Type.GetPropertyImpl(System.String, System.Reflection.BindingFlags, System.Reflection.Binder, System.Type, System.Type[], System.Reflection.ParameterModifier[])
Declaration
protected override bool HasElementTypeImpl()
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Type.HasElementTypeImpl()
Declaration
public override object InvokeMember(string name, BindingFlags invokeAttr, Binder binder, object target, object[] args, ParameterModifier[] modifiers, CultureInfo culture, string[] namedParameters)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Reflection.BindingFlags |
invokeAttr |
|
System.Reflection.Binder |
binder |
|
System.Object |
target |
|
System.Object[] |
args |
|
System.Reflection.ParameterModifier[] |
modifiers |
|
System.Globalization.CultureInfo |
culture |
|
System.String[] |
namedParameters |
|
Returns
Type |
Description |
System.Object |
|
Overrides
System.Type.InvokeMember(System.String, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object, System.Object[], System.Reflection.ParameterModifier[], System.Globalization.CultureInfo, System.String[])
Declaration
protected override bool IsArrayImpl()
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Type.IsArrayImpl()
Declaration
protected override bool IsByRefImpl()
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Type.IsByRefImpl()
Declaration
protected override bool IsCOMObjectImpl()
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Type.IsCOMObjectImpl()
Declaration
public override bool IsDefined(Type attributeType, bool inherit)
Parameters
Type |
Name |
Description |
System.Type |
attributeType |
|
System.Boolean |
inherit |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Reflection.MemberInfo.IsDefined(System.Type, System.Boolean)
Declaration
protected override bool IsPointerImpl()
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Type.IsPointerImpl()
Declaration
protected override bool IsPrimitiveImpl()
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Type.IsPrimitiveImpl()
Declaration
public override Type MakeArrayType()
Returns
Type |
Description |
System.Type |
|
Overrides
System.Type.MakeArrayType()
Declaration
public override Type MakeByRefType()
Returns
Type |
Description |
System.Type |
|
Overrides
System.Type.MakeByRefType()
Declaration
public override Type MakePointerType()
Returns
Type |
Description |
System.Type |
|
Overrides
System.Type.MakePointerType()
Implements
System.Reflection.ICustomAttributeProvider
System.Runtime.InteropServices._MemberInfo
System.Runtime.InteropServices._Type
System.Reflection.IReflect
Extension Methods