Skip to main content

Definition

Assembly: CloudNimble.Breakdance.Assemblies.dll Namespace: CloudNimble.Breakdance.Assemblies Inheritance: System.Object

Syntax

CloudNimble.Breakdance.Assemblies.PrivateObject

Summary

This class represents the live NON public INTERNAL object in the system

Remarks

This type originally lived in Microsoft.VisualStudio.TestTools.UnitTesting but was removed from V2.

Constructors

.ctor

Initializes a new instance of the PrivateObject class that contains the already existing object of the private class

Syntax

public PrivateObject(object obj, string memberToAccess)

Parameters

NameTypeDescription
objobjectobject that serves as starting point to reach the private members
memberToAccessstringthe derefrencing string using . that points to the object to be retrived as in m_X.m_Y.m_Z

.ctor

Initializes a new instance of the PrivateObject class that wraps the specified type.

Syntax

public PrivateObject(string assemblyName, string typeName, params object[] args)

Parameters

NameTypeDescription
assemblyNamestringName of the assembly
typeNamestringfully qualified name
argsobject[]Argmenets to pass to the constructor

.ctor

Initializes a new instance of the PrivateObject class that wraps the specified type.

Syntax

public PrivateObject(string assemblyName, string typeName, System.Type[] parameterTypes, object[] args)

Parameters

NameTypeDescription
assemblyNamestringName of the assembly
typeNamestringfully qualified name
parameterTypesSystem.Type[]An array of Type objects representing the number, order, and type of the parameters for the constructor to get
argsobject[]Arguments to pass to the constructor

.ctor

Initializes a new instance of the PrivateObject class that wraps the specified type.

Syntax

public PrivateObject(System.Type type, params object[] args)

Parameters

NameTypeDescription
typeSystem.Typetype of the object to create
argsobject[]Arguments to pass to the constructor

.ctor

Initializes a new instance of the PrivateObject class that wraps the specified type.

Syntax

public PrivateObject(System.Type type, System.Type[] parameterTypes, object[] args)

Parameters

NameTypeDescription
typeSystem.Typetype of the object to create
parameterTypesSystem.Type[]An array of Type objects representing the number, order, and type of the parameters for the constructor to get
argsobject[]Arguments to pass to the constructor

.ctor

Initializes a new instance of the PrivateObject class that wraps the given object.

Syntax

public PrivateObject(object obj)

Parameters

NameTypeDescription
objobjectobject to wrap

.ctor

Initializes a new instance of the PrivateObject class that wraps the given object.

Syntax

public PrivateObject(object obj, CloudNimble.Breakdance.Assemblies.PrivateType type)

Parameters

NameTypeDescription
objobjectobject to wrap
typeCloudNimble.Breakdance.Assemblies.PrivateTypePrivateType object

.ctor Inherited

Inherited from object

Syntax

public Object()

Properties

RealType

Gets the type of underlying object

Syntax

public System.Type RealType { get; }

Property Value

Type: System.Type

Target

Gets or sets the target

Syntax

public object Target { get; set; }

Property Value

Type: object

Methods

Equals Override

Equals

Syntax

public override bool Equals(object obj)

Parameters

NameTypeDescription
objobjectObject with whom to compare

Returns

Type: bool returns true if the objects are equal.

Equals Inherited Virtual

Inherited from object

Syntax

public virtual bool Equals(object obj)

Parameters

NameTypeDescription
objobject?-

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

public static bool Equals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

GetArrayElement

Gets the array element using array of subsrcipts for each dimension

Syntax

public object GetArrayElement(string name, params int[] indices)

Parameters

NameTypeDescription
namestringName of the member
indicesint[]the indices of array

Returns

Type: object An arrya of elements.

GetArrayElement

Gets the array element using array of subsrcipts for each dimension

Syntax

public object GetArrayElement(string name, System.Reflection.BindingFlags bindingFlags, params int[] indices)

Parameters

NameTypeDescription
namestringName of the member
bindingFlagsSystem.Reflection.BindingFlagsA bitmask comprised of one or more BindingFlags that specify how the search is conducted.
indicesint[]the indices of array

Returns

Type: object An arrya of elements.

GetField

Get the field

Syntax

public object GetField(string name)

Parameters

NameTypeDescription
namestringName of the field

Returns

Type: object The field.

GetField

Gets the field

Syntax

public object GetField(string name, System.Reflection.BindingFlags bindingFlags)

Parameters

NameTypeDescription
namestringName of the field
bindingFlagsSystem.Reflection.BindingFlagsA bitmask comprised of one or more BindingFlags that specify how the search is conducted.

Returns

Type: object The field.

GetFieldOrProperty

Get the field or property

Syntax

public object GetFieldOrProperty(string name)

Parameters

NameTypeDescription
namestringName of the field or property

Returns

Type: object The field or property.

GetFieldOrProperty

Gets the field or property

Syntax

public object GetFieldOrProperty(string name, System.Reflection.BindingFlags bindingFlags)

Parameters

NameTypeDescription
namestringName of the field or property
bindingFlagsSystem.Reflection.BindingFlagsA bitmask comprised of one or more BindingFlags that specify how the search is conducted.

Returns

Type: object The field or property.

GetHashCode Override

returns the hash code of the target object

Syntax

public override int GetHashCode()

Returns

Type: int int representing hashcode of the target object

GetHashCode Inherited Virtual

Inherited from object

Syntax

public virtual int GetHashCode()

Returns

Type: int

GetProperty

Gets the property

Syntax

public object GetProperty(string name, params object[] args)

Parameters

NameTypeDescription
namestringName of the property
argsobject[]Arguments to pass to the member to invoke.

Returns

Type: object The property.

GetProperty

Gets the property

Syntax

public object GetProperty(string name, System.Type[] parameterTypes, object[] args)

Parameters

NameTypeDescription
namestringName of the property
parameterTypesSystem.Type[]An array of Type objects representing the number, order, and type of the parameters for the indexed property.
argsobject[]Arguments to pass to the member to invoke.

Returns

Type: object The property.

GetProperty

Gets the property

Syntax

public object GetProperty(string name, System.Reflection.BindingFlags bindingFlags, params object[] args)

Parameters

NameTypeDescription
namestringName of the property
bindingFlagsSystem.Reflection.BindingFlagsA bitmask comprised of one or more BindingFlags that specify how the search is conducted.
argsobject[]Arguments to pass to the member to invoke.

Returns

Type: object The property.

GetProperty

Gets the property

Syntax

public object GetProperty(string name, System.Reflection.BindingFlags bindingFlags, System.Type[] parameterTypes, object[] args)

Parameters

NameTypeDescription
namestringName of the property
bindingFlagsSystem.Reflection.BindingFlagsA bitmask comprised of one or more BindingFlags that specify how the search is conducted.
parameterTypesSystem.Type[]An array of Type objects representing the number, order, and type of the parameters for the indexed property.
argsobject[]Arguments to pass to the member to invoke.

Returns

Type: object The property.

GetType Inherited

Inherited from object

Syntax

public System.Type GetType()

Returns

Type: System.Type

Invoke

Invokes the specified method

Syntax

public object Invoke(string name, params object[] args)

Parameters

NameTypeDescription
namestringName of the method
argsobject[]Arguments to pass to the member to invoke.

Returns

Type: object Result of method call

Invoke

Invokes the specified method

Syntax

public object Invoke(string name, System.Type[] parameterTypes, object[] args)

Parameters

NameTypeDescription
namestringName of the method
parameterTypesSystem.Type[]An array of Type objects representing the number, order, and type of the parameters for the method to get.
argsobject[]Arguments to pass to the member to invoke.

Returns

Type: object Result of method call

Invoke

Invokes the specified method

Syntax

public object Invoke(string name, System.Type[] parameterTypes, object[] args, System.Type[] typeArguments)

Parameters

NameTypeDescription
namestringName of the method
parameterTypesSystem.Type[]An array of Type objects representing the number, order, and type of the parameters for the method to get.
argsobject[]Arguments to pass to the member to invoke.
typeArgumentsSystem.Type[]An array of types corresponding to the types of the generic arguments.

Returns

Type: object Result of method call

Invoke

Invokes the specified method

Syntax

public object Invoke(string name, object[] args, System.Globalization.CultureInfo culture)

Parameters

NameTypeDescription
namestringName of the method
argsobject[]Arguments to pass to the member to invoke.
cultureSystem.Globalization.CultureInfoCulture info

Returns

Type: object Result of method call

Invoke

Invokes the specified method

Syntax

public object Invoke(string name, System.Type[] parameterTypes, object[] args, System.Globalization.CultureInfo culture)

Parameters

NameTypeDescription
namestringName of the method
parameterTypesSystem.Type[]An array of Type objects representing the number, order, and type of the parameters for the method to get.
argsobject[]Arguments to pass to the member to invoke.
cultureSystem.Globalization.CultureInfoCulture info

Returns

Type: object Result of method call

Invoke

Invokes the specified method

Syntax

public object Invoke(string name, System.Reflection.BindingFlags bindingFlags, params object[] args)

Parameters

NameTypeDescription
namestringName of the method
bindingFlagsSystem.Reflection.BindingFlagsA bitmask comprised of one or more BindingFlags that specify how the search is conducted.
argsobject[]Arguments to pass to the member to invoke.

Returns

Type: object Result of method call

Invoke

Invokes the specified method

Syntax

public object Invoke(string name, System.Reflection.BindingFlags bindingFlags, System.Type[] parameterTypes, object[] args)

Parameters

NameTypeDescription
namestringName of the method
bindingFlagsSystem.Reflection.BindingFlagsA bitmask comprised of one or more BindingFlags that specify how the search is conducted.
parameterTypesSystem.Type[]An array of Type objects representing the number, order, and type of the parameters for the method to get.
argsobject[]Arguments to pass to the member to invoke.

Returns

Type: object Result of method call

Invoke

Invokes the specified method

Syntax

public object Invoke(string name, System.Reflection.BindingFlags bindingFlags, object[] args, System.Globalization.CultureInfo culture)

Parameters

NameTypeDescription
namestringName of the method
bindingFlagsSystem.Reflection.BindingFlagsA bitmask comprised of one or more BindingFlags that specify how the search is conducted.
argsobject[]Arguments to pass to the member to invoke.
cultureSystem.Globalization.CultureInfoCulture info

Returns

Type: object Result of method call

Invoke

Invokes the specified method

Syntax

public object Invoke(string name, System.Reflection.BindingFlags bindingFlags, System.Type[] parameterTypes, object[] args, System.Globalization.CultureInfo culture)

Parameters

NameTypeDescription
namestringName of the method
bindingFlagsSystem.Reflection.BindingFlagsA bitmask comprised of one or more BindingFlags that specify how the search is conducted.
parameterTypesSystem.Type[]An array of Type objects representing the number, order, and type of the parameters for the method to get.
argsobject[]Arguments to pass to the member to invoke.
cultureSystem.Globalization.CultureInfoCulture info

Returns

Type: object Result of method call

Invoke

Invokes the specified method

Syntax

public object Invoke(string name, System.Reflection.BindingFlags bindingFlags, System.Type[] parameterTypes, object[] args, System.Globalization.CultureInfo culture, System.Type[] typeArguments)

Parameters

NameTypeDescription
namestringName of the method
bindingFlagsSystem.Reflection.BindingFlagsA bitmask comprised of one or more BindingFlags that specify how the search is conducted.
parameterTypesSystem.Type[]An array of Type objects representing the number, order, and type of the parameters for the method to get.
argsobject[]Arguments to pass to the member to invoke.
cultureSystem.Globalization.CultureInfoCulture info
typeArgumentsSystem.Type[]An array of types corresponding to the types of the generic arguments.

Returns

Type: object Result of method call

MemberwiseClone Inherited

Inherited from object

Syntax

protected internal object MemberwiseClone()

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

public static bool ReferenceEquals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

SetArrayElement

Sets the array element using array of subsrcipts for each dimension

Syntax

public void SetArrayElement(string name, object value, params int[] indices)

Parameters

NameTypeDescription
namestringName of the member
valueobjectValue to set
indicesint[]the indices of array

SetArrayElement

Sets the array element using array of subsrcipts for each dimension

Syntax

public void SetArrayElement(string name, System.Reflection.BindingFlags bindingFlags, object value, params int[] indices)

Parameters

NameTypeDescription
namestringName of the member
bindingFlagsSystem.Reflection.BindingFlagsA bitmask comprised of one or more BindingFlags that specify how the search is conducted.
valueobjectValue to set
indicesint[]the indices of array

SetField

Sets the field

Syntax

public void SetField(string name, object value)

Parameters

NameTypeDescription
namestringName of the field
valueobjectvalue to set

SetField

Sets the field

Syntax

public void SetField(string name, System.Reflection.BindingFlags bindingFlags, object value)

Parameters

NameTypeDescription
namestringName of the field
bindingFlagsSystem.Reflection.BindingFlagsA bitmask comprised of one or more BindingFlags that specify how the search is conducted.
valueobjectvalue to set

SetFieldOrProperty

Sets the field or property

Syntax

public void SetFieldOrProperty(string name, object value)

Parameters

NameTypeDescription
namestringName of the field or property
valueobjectvalue to set

SetFieldOrProperty

Sets the field or property

Syntax

public void SetFieldOrProperty(string name, System.Reflection.BindingFlags bindingFlags, object value)

Parameters

NameTypeDescription
namestringName of the field or property
bindingFlagsSystem.Reflection.BindingFlagsA bitmask comprised of one or more BindingFlags that specify how the search is conducted.
valueobjectvalue to set

SetProperty

Set the property

Syntax

public void SetProperty(string name, object value, params object[] args)

Parameters

NameTypeDescription
namestringName of the property
valueobjectvalue to set
argsobject[]Arguments to pass to the member to invoke.

SetProperty

Set the property

Syntax

public void SetProperty(string name, System.Type[] parameterTypes, object value, object[] args)

Parameters

NameTypeDescription
namestringName of the property
parameterTypesSystem.Type[]An array of Type objects representing the number, order, and type of the parameters for the indexed property.
valueobjectvalue to set
argsobject[]Arguments to pass to the member to invoke.

SetProperty

Sets the property

Syntax

public void SetProperty(string name, System.Reflection.BindingFlags bindingFlags, object value, params object[] args)

Parameters

NameTypeDescription
namestringName of the property
bindingFlagsSystem.Reflection.BindingFlagsA bitmask comprised of one or more BindingFlags that specify how the search is conducted.
valueobjectvalue to set
argsobject[]Arguments to pass to the member to invoke.

SetProperty

Sets the property

Syntax

public void SetProperty(string name, System.Reflection.BindingFlags bindingFlags, object value, System.Type[] parameterTypes, object[] args)

Parameters

NameTypeDescription
namestringName of the property
bindingFlagsSystem.Reflection.BindingFlagsA bitmask comprised of one or more BindingFlags that specify how the search is conducted.
valueobjectvalue to set
parameterTypesSystem.Type[]An array of Type objects representing the number, order, and type of the parameters for the indexed property.
argsobject[]Arguments to pass to the member to invoke.

ToString Inherited Virtual

Inherited from object

Syntax

public virtual string ToString()

Returns

Type: string?