PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / IGeneric Interface

IGeneric Interface

Exposes the common semantics to generic instances and generic definitions.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public interface IGeneric

The IGeneric type exposes the following members.

Properties
  NameDescription
Public propertyIsGenericDefinition
Determines whether the current instance is a generic definition, i.e. whether it can be used to construct generic instances.
Public propertyIsGenericInstance
Determines whether the current instance is a generic instance, i.e. whether it has been constructed from a generic definition.
Methods
  NameDescription
Public methodContainsGenericArguments
Public methodGetGenericContext
Gets the generic context inside the scope of the generic instance.
See Also