Share via


ReflectionHelper.GetClosedParameterType Method

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The latest Unity Application Block information can be found at the Unity Application Block site.

If this type is an open generic, use the given genericArguments array to determine what the required closed type is and return that.

Namespace:  Microsoft.Practices.Unity.Utility
Assembly:  Microsoft.Practices.Unity (in Microsoft.Practices.Unity.dll)

Syntax

'Declaration
Public Function GetClosedParameterType ( _
    genericArguments As Type() _
) As Type
public Type GetClosedParameterType(
    Type[] genericArguments
)
public:
Type^ GetClosedParameterType(
    array<Type^>^ genericArguments
)
public function GetClosedParameterType(
    genericArguments : Type[]
) : Type

Parameters

  • genericArguments
    Type: array<System.Type[]
    Type arguments to substitute in for the open type parameters.

Return Value

Corresponding closed type of this parameter.

Remarks

If the parameter is not an open type, just return this parameter's type.

See Also

ReflectionHelper Class

Microsoft.Practices.Unity.Utility Namespace