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)

Syntax

'Declaration
Protected Shared Function GetTargetObject ( _
    source As Object _
) As Object
protected static Object GetTargetObject(
    Object source
)
protected:
static Object^ GetTargetObject(
    Object^ source
)
static member GetTargetObject : 
        source:Object -> Object 
protected static function GetTargetObject(
    source : Object
) : Object

Parameters

Return Value

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

Remarks

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.

.NET Framework Security

See Also

Reference

BaseShadow Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace