Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetTargetObject Method

BaseShadow.GetTargetObject Method

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
Type: System.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.

Show:
© 2015 Microsoft