PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Extensibility.​Tasks Namespace / IIndex­Generic­Instances­Service Interface / IIndex­Generic­Instances­Service Methods / IIndex­Generic­Instances­Service.​Get­Generic­Instances Method

IIndexGenericInstancesService.GetGenericInstances Method

Gets the set of generic instances of a given generic definition.

Namespace:  PostSharp.Sdk.Extensibility.Tasks
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
ICollection<MetadataDeclaration> GetGenericInstances(
	MetadataDeclaration genericDefinition
)

Parameters

genericDefinition
Type: PostSharp.Sdk.CodeModel.MetadataDeclaration
A generic definition (TypeDefDeclaration, MethodDefDeclaration or FieldDefDeclaration).

Return Value

Type: ICollection<MetadataDeclaration>
The set of generic instances (TypeSpecDeclaration, MethodSpecDeclaration, MethodRefDeclaration or FieldRefDeclaration) of genericDefinition.
See Also