PostSharp4.3/API Reference/Post­Sharp.​Reflection.​Generic­Args Namespace/Generic­Arg Class/Generic­Arg Methods/Generic­Arg.​Map Method
GenericArg.Map Method
Binds unbound generic arguments to concrete types.

Namespace: PostSharp.Reflection.GenericArgs
Assembly: PostSharp (in PostSharp.dll) Version: 4.3.48.0 (4.3.48.0)
Syntax
C#
public static Type Map(
	Type type,
	Type[] genericTypeParameters,
	Type[] genericMethodParameters
)

Parameters

type
Type: System.Type
A Type containing unbound generic arguments (derived from GenericArg).
genericTypeParameters
Type: System.Type[]
Array of types to which the unbound generic type arguments should be bound.
genericMethodParameters
Type: System.Type[]
Array of types to which the unbound generic method parameters should be bound.

Return Value

Type: Type
A Type where unbound generic arguments have been replaced by genericTypeParameters and genericMethodParameters.
See Also