Partager via


BaseShadow.GetTargetType Method

Returns the target Type for a potential shadow class.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

Syntax

'Declaration
Protected Shared Function GetTargetType ( _
    type As Type _
) As Type
protected static Type GetTargetType(
    Type type
)
protected:
static Type^ GetTargetType(
    Type^ type
)
static member GetTargetType : 
        type:Type -> Type
protected static function GetTargetType(
    type : Type
) : Type

Parameters

  • type
    Type: Type

    The type to examine.

Return Value

Type: Type
Returns the target Type for a potential shadow class. If the passed type is not a shadow type, it returns the same type.

Remarks

The type should not be a generic declaration.

In the case of generic instantiation the function also processes the type arguments.

.NET Framework Security

See Also

Reference

BaseShadow Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace