Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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: TypeThe 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
- 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.