Export (0) Print
Expand All

BaseShadow Class

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

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

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

type BaseShadow =  class end

The BaseShadow type exposes the following members.

  NameDescription
Protected methodBaseShadow(PrivateObject)Initializes a new instance of the BaseShadow class.
Protected methodBaseShadow(PrivateType)Initializes a new instance of the BaseShadow class.
Top

  NameDescription
Public propertyTargetGets the target object.
Top

  NameDescription
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Overrides Object.Equals(Object).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeReturns the hash code for this instance. (Overrides Object.GetHashCode().)
Protected methodStatic memberGetShadowAttacherUsed for dynamically restoring of arrays of private types.
Protected methodStatic memberGetTargetObjectStatic function that will be used with TransferArray for deep array copy with unshadowing the real target Type objects.
Protected methodStatic memberGetTargetTypeReturns the target Type for a potential shadow class.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodStatic memberMakeArrayTypeReturns a Type object that represents an array of the specified type, with the specified number of dimensions.
Public methodStatic memberMakeByRefTypeReturns a Type object that represents the specified type when it is passed as a ref parameter.
Public methodStatic memberMakePointerTypeReturns a Type object that represents a pointer to the specified type.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodStatic memberSameDummy 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.
Public methodToStringReturns a String that represents the current BaseShadow object. (Overrides Object.ToString().)
Protected methodStatic memberTransferArrayPerforms a deep copy of an array of one Type into a similar array of different Type.
Top

  NameDescription
Public fieldStatic memberAttachShadowNameThe name of the static method in derived classes.
Protected fieldm_privateObjectThe PrivateObject stored in this instance.
Top

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.
Show:
© 2014 Microsoft