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: System.Type
The type to examine.
Return Value
Type: System.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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.