Dela via


BaseShadow.GetShadowAttacher Method

Used for dynamically restoring of arrays of private types.

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

Syntax

'Declaration
Protected Shared Function GetShadowAttacher ( _
    type As Type _
) As BaseShadow..::..ElementConverter
protected static BaseShadow..::..ElementConverter GetShadowAttacher(
    Type type
)
protected:
static BaseShadow..::..ElementConverter^ GetShadowAttacher(
    Type^ type
)
static member GetShadowAttacher : 
        type:Type -> BaseShadow..::..ElementConverter 
protected static function GetShadowAttacher(
    type : Type
) : BaseShadow..::..ElementConverter

Parameters

  • type
    Type: System.Type
    The type, potentially an array or pointer.

Return Value

Type: Microsoft.VisualStudio.TestTools.UnitTesting.BaseShadow.ElementConverter
The BaseShadow.ElementConverter delegate for the AttachShadow method.

Remarks

Obtains dynamically the AttachShadow static method for the given type, looking deeply for the inner element type. For example, for typeof(privateObject_Shadow[,][,]) GetShadowAttacher will return privateObject_Shadow.AttachShadow.

.NET Framework Security

See Also

Reference

BaseShadow Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace