Class GenericTypeSlim
Lightweight representation of a closed generic type.
Implements
System.IEquatable<TypeSlim>
Inherited Members
Namespace: System.Reflection
Assembly: Nuqleon.Linq.Expressions.Bonsai.dll
Syntax
public abstract class GenericTypeSlim : TypeSlim, IEquatable<TypeSlim>
Properties
GenericArgumentCount
Gets the number of generic type arguments.
Declaration
public abstract int GenericArgumentCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
GenericArguments
Gets the generic type arguments.
Declaration
public abstract ReadOnlyCollection<TypeSlim> GenericArguments { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyCollection<TypeSlim> |
GenericTypeDefinition
Gets the generic type definition.
Declaration
public GenericDefinitionTypeSlim GenericTypeDefinition { get; }
Property Value
Type | Description |
---|---|
GenericDefinitionTypeSlim |
Kind
Gets the kind of the type.
Declaration
public override TypeSlimKind Kind { get; }
Property Value
Type | Description |
---|---|
TypeSlimKind |
Overrides
Methods
GetGenericArgument(Int32)
Gets the generic type argument at the specified index.
Declaration
public abstract TypeSlim GetGenericArgument(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index of the generic type argument to get. |
Returns
Type | Description |
---|---|
TypeSlim | The generic type argument at the specified index. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | Thrown if the specified index is out of range. |
Implements
System.IEquatable<>