Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

BaseShadow.GetTargetType Method (Type)

 

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)

protected static Type GetTargetType(
	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.

The type should not be a generic declaration.

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

Return to top
Show: