Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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)

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

The type should not be a generic declaration.

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

Show:
© 2015 Microsoft