PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Generic­Method­Reference Class

GenericMethodReference Class

Reference to a MethodDefDeclaration combined with a GenericMap specifying the generic arguments of this method with respect to the context that returned the GenericMethodReference.
Inheritance Hierarchy
System.Object
  PostSharp.Sdk.CodeModel.GenericMemberReference
    PostSharp.Sdk.CodeModel.GenericMethodReference

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public sealed class GenericMethodReference : GenericMemberReference

The GenericMethodReference type exposes the following members.

Constructors
  NameDescription
Public methodGenericMethodReference
Initializes a new GenericMethodReference.
Properties
Methods
  NameDescription
Public methodApply
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetInstance(ITypeSignature)
Gets a generic instance of the Method by mapping the generic arguments in GenericMap with the generic arguments of a given type.
Public methodGetInstance(ModuleDeclaration, GenericMap)
Gets a generic instance of the Method by mapping the generic arguments in GenericMap with a given GenericMap.
Public methodGetMemberType(ITypeSignature)
Gets the type of [!:Event] after generic arguments in GenericMap have been mapped with the generic arguments of a given type.
(Inherited from GenericMemberReference.)
Public methodGetMemberType(ModuleDeclaration, GenericMap)
Gets the type of Member after generic arguments in GenericMap have been mapped with a given GenericMap.
(Inherited from GenericMemberReference.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also