Skip to main content

Definition

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

Syntax

CloudNimble.Breakdance.Assemblies.PrivateType

Summary

This class represents a private class for the Private Accessor functionality.

Remarks

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

Constructors

.ctor

Initializes a new instance of the PrivateType class that contains the private type.

Syntax

public PrivateType(string assemblyName, string typeName)

Parameters

NameTypeDescription
assemblyNamestringAssembly name
typeNamestringfully qualified name of the

.ctor

Initializes a new instance of the PrivateType class that contains the private type from the type object

Syntax

public PrivateType(System.Type type)

Parameters

NameTypeDescription
typeSystem.TypeThe wrapped Type to create.

.ctor Inherited

Inherited from object

Syntax

public Object()

Properties

ReferencedType

Gets the referenced type

Syntax

public System.Type ReferencedType { get; }

Property Value

Type: System.Type

Methods

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

GetHashCode Inherited Virtual

Inherited from object

Syntax

public virtual int GetHashCode()

Returns

Type: int

GetStaticArrayElement

Gets the element in static array

Syntax

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

Parameters

NameTypeDescription
namestringName of the array
indicesint[]A one-dimensional array of 32-bit integers that represent the indexes specifying
the position of the element to get. For instance, to access a[10][11] the indices would be

Returns

Type: object element at the specified location

GetStaticArrayElement

Gets the element in satatic array

Syntax

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

Parameters

NameTypeDescription
namestringName of the array
bindingFlagsSystem.Reflection.BindingFlagsAdditional InvokeHelper attributes
indicesint[]A one-dimensional array of 32-bit integers that represent the indexes specifying
the position of the element to get. For instance, to access a[10][11] the array would be

Returns

Type: object element at the spcified location

GetStaticField

Gets the static field

Syntax

public object GetStaticField(string name)

Parameters

NameTypeDescription
namestringName of the field

Returns

Type: object The static field.

GetStaticField

Gets the static field using specified InvokeHelper attributes

Syntax

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

Parameters

NameTypeDescription
namestringName of the field
bindingFlagsSystem.Reflection.BindingFlagsAdditional invocation attributes

Returns

Type: object The static field.

GetStaticFieldOrProperty

Gets the static field or property

Syntax

public object GetStaticFieldOrProperty(string name)

Parameters

NameTypeDescription
namestringName of the field or property

Returns

Type: object The static field or property.

GetStaticFieldOrProperty

Gets the static field or property using specified InvokeHelper attributes

Syntax

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

Parameters

NameTypeDescription
namestringName of the field or property
bindingFlagsSystem.Reflection.BindingFlagsAdditional invocation attributes

Returns

Type: object The static field or property.

GetStaticProperty

Gets the static property

Syntax

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

Parameters

NameTypeDescription
namestringName of the field or property
argsobject[]Arguements to the invocation

Returns

Type: object The static property.

GetStaticProperty

Gets the static property

Syntax

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

Parameters

NameTypeDescription
namestringName of the property
bindingFlagsSystem.Reflection.BindingFlagsAdditional invocation attributes.
argsobject[]Arguments to pass to the member to invoke.

Returns

Type: object The static property.

GetStaticProperty

Gets the static property

Syntax

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

Parameters

NameTypeDescription
namestringName of the property
bindingFlagsSystem.Reflection.BindingFlagsAdditional invocation attributes.
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 static property.

GetType Inherited

Inherited from object

Syntax

public System.Type GetType()

Returns

Type: System.Type

InvokeStatic

Invokes static member

Syntax

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

Parameters

NameTypeDescription
namestringName of the member to InvokeHelper
argsobject[]Arguements to the invoction

Returns

Type: object Result of invocation

InvokeStatic

Invokes static member

Syntax

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

Parameters

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

Returns

Type: object Result of invocation

InvokeStatic

Invokes static member

Syntax

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

Parameters

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

Returns

Type: object Result of invocation

InvokeStatic

Invokes the static method

Syntax

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

Parameters

NameTypeDescription
namestringName of the member
argsobject[]Arguements to the invocation
cultureSystem.Globalization.CultureInfoCulture

Returns

Type: object Result of invocation

InvokeStatic

Invokes the static method

Syntax

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

Parameters

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

Returns

Type: object Result of invocation

InvokeStatic

Invokes the static method

Syntax

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

Parameters

NameTypeDescription
namestringName of the member
bindingFlagsSystem.Reflection.BindingFlagsAdditional invocation attributes
argsobject[]Arguements to the invocation

Returns

Type: object Result of invocation

InvokeStatic

Invokes the static method

Syntax

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

Parameters

NameTypeDescription
namestringName of the member
bindingFlagsSystem.Reflection.BindingFlagsAdditional invocation attributes
parameterTypesSystem.Type[]An array of Type objects representing the number, order, and type of the parameters for the method to invoke
argsobject[]Arguements to the invocation

Returns

Type: object Result of invocation

InvokeStatic

Invokes the static method

Syntax

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

Parameters

NameTypeDescription
namestringName of the member
bindingFlagsSystem.Reflection.BindingFlagsAdditional invocation attributes
argsobject[]Arguements to the invocation
cultureSystem.Globalization.CultureInfoCulture

Returns

Type: object Result of invocation

InvokeStatic

Invokes the static method

Syntax

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

Parameters

NameTypeDescription
namestringName of the member
bindingFlagsSystem.Reflection.BindingFlagsAdditional invocation attributes
parameterTypesSystem.Type[]An array of Type objects representing the number, order, and type of the parameters for the method to invoke
argsobject[]Arguements to the invocation
cultureSystem.Globalization.CultureInfoCulture

Returns

Type: object Result of invocation

InvokeStatic

Invokes the static method

Syntax

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

Parameters

NameTypeDescription
namestringName of the member
bindingFlagsSystem.Reflection.BindingFlagsAdditional invocation attributes
parameterTypesSystem.Type[]An array of Type objects representing the number, order, and type of the parameters for the method to invoke
argsobject[]Arguements to the invocation
cultureSystem.Globalization.CultureInfoCulture
typeArgumentsSystem.Type[]An array of types corresponding to the types of the generic arguments.

Returns

Type: object Result of invocation

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

SetStaticArrayElement

Sets the memeber of the static array

Syntax

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

Parameters

NameTypeDescription
namestringName of the array
valueobjectvalue to set
indicesint[]A one-dimensional array of 32-bit integers that represent the indexes specifying
the position of the element to set. For instance, to access a[10][11] the array would be

SetStaticArrayElement

Sets the memeber of the static array

Syntax

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

Parameters

NameTypeDescription
namestringName of the array
bindingFlagsSystem.Reflection.BindingFlagsAdditional InvokeHelper attributes
valueobjectvalue to set
indicesint[]A one-dimensional array of 32-bit integers that represent the indexes specifying
the position of the element to set. For instance, to access a[10][11] the array would be

SetStaticField

Sets the static field

Syntax

public void SetStaticField(string name, object value)

Parameters

NameTypeDescription
namestringName of the field
valueobjectArguement to the invocation

SetStaticField

Sets the static field using binding attributes

Syntax

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

Parameters

NameTypeDescription
namestringName of the field
bindingFlagsSystem.Reflection.BindingFlagsAdditional InvokeHelper attributes
valueobjectArguement to the invocation

SetStaticFieldOrProperty

Sets the static field or property

Syntax

public void SetStaticFieldOrProperty(string name, object value)

Parameters

NameTypeDescription
namestringName of the field or property
valueobjectValue to be set to field or property

SetStaticFieldOrProperty

Sets the static field or property using binding attributes

Syntax

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

Parameters

NameTypeDescription
namestringName of the field or property
bindingFlagsSystem.Reflection.BindingFlagsAdditional invocation attributes
valueobjectValue to be set to field or property

SetStaticProperty

Sets the static property

Syntax

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

Parameters

NameTypeDescription
namestringName of the property
valueobjectValue to be set to field or property
argsobject[]Arguments to pass to the member to invoke.

SetStaticProperty

Sets the static property

Syntax

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

Parameters

NameTypeDescription
namestringName of the property
valueobjectValue to be set to field or 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.

SetStaticProperty

Sets the static property

Syntax

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

Parameters

NameTypeDescription
namestringName of the property
bindingFlagsSystem.Reflection.BindingFlagsAdditional invocation attributes.
valueobjectValue to be set to field or property
argsobject[]Optional index values for indexed properties. The indexes of indexed properties are zero-based. This value should be null for non-indexed properties.

SetStaticProperty

Sets the static property

Syntax

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

Parameters

NameTypeDescription
namestringName of the property
bindingFlagsSystem.Reflection.BindingFlagsAdditional invocation attributes.
valueobjectValue to be set to field or 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.

ToString Inherited Virtual

Inherited from object

Syntax

public virtual string ToString()

Returns

Type: string?