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 Class

 

This class is used by the publicize method to help test private types.

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

System.Object
  Microsoft.VisualStudio.TestTools.UnitTesting.BaseShadow

public class BaseShadow

NameDescription
System_CAPS_protmethodBaseShadow(PrivateObject)

Initializes a new instance of the BaseShadow class.

System_CAPS_protmethodBaseShadow(PrivateType)

Initializes a new instance of the BaseShadow class.

NameDescription
System_CAPS_pubpropertyTarget

Gets the target object.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified Object is equal to the current Object.(Overrides Object.Equals(Object).)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Returns the hash code for this instance.(Overrides Object.GetHashCode().)

System_CAPS_protmethodSystem_CAPS_staticGetShadowAttacher(Type)

Used for dynamically restoring of arrays of private types.

System_CAPS_protmethodSystem_CAPS_staticGetTargetObject(Object)

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

System_CAPS_protmethodSystem_CAPS_staticGetTargetType(Type)

Returns the target Type for a potential shadow class.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticMakeArrayType(Type, Int32)

Returns a Type object that represents an array of the specified type, with the specified number of dimensions.

System_CAPS_pubmethodSystem_CAPS_staticMakeByRefType(Type)

Returns a Type object that represents the specified type when it is passed as a ref parameter.

System_CAPS_pubmethodSystem_CAPS_staticMakePointerType(Type)

Returns a Type object that represents a pointer to the specified type.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodSystem_CAPS_staticSame(Object)

Dummy method used to transfer the arrays of the same Type. This is the failsafe implementation of the BaseShadow.ElementConverter delegate used for arrays of the same type.

System_CAPS_pubmethodToString()

Returns a String that represents the current BaseShadow object.(Overrides Object.ToString().)

System_CAPS_protmethodSystem_CAPS_staticTransferArray(Array, Type, BaseShadow.ElementConverter)

Performs a deep copy of an array of one Type into a similar array of different Type.

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticAttachShadowName

The name of the static method in derived classes.

System_CAPS_protfieldm_privateObject

The PrivateObject stored in this instance.

Public Type accessors that use the PrivateObject class to test private types must inherit from this class.

Use this as a base class to inherit from. Do not call the methods of this class directly.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: