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::GetTargetObject Method (Object^)

 

Static function that will be used with TransferArray for deep array copy with unshadowing the real target Type objects.

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

protected:
static Object^ GetTargetObject(
	Object^ source
)

Parameters

Source

The source object.

Return Value

Type: System::Object^

If Source is a shadow, returns the underlying target Type; otherwise returns Source.

The function dynamically determines whether the passed object is a shadow and if yes, unshadows it. This method can be used with generic parameters or generic instantiations.

Return to top
Show: