Telerik® JustMock™ by Progress

The PrivateAccessor type exposes the following members.

Methods

  NameDescription
Public methodCallMethod(MethodBase, array<Object>[]()[][])
Calls the specified method.
Public methodCallMethod(String, array<Object>[]()[][])
Calls the specified method by name.
Public methodCallMethodWithTypeArguments
Calls the specified generic method by name.
Public methodCallStaticConstructor
Calls the type's static constructor. The static constructor can be executed even when the runtime has already called it as part of type's initialization.
Public methodStatic memberForType
Creates a new PrivateAccessor wrapping the given type. Can be used to access the static members of a type.
Public methodGetField
Gets the value of a field.
Public methodGetIndex
Gets the value returned by the indexer (
CopyC#
this[T index]
in C#) for the specified index value.
Public methodGetMember
Gets the value of a field or property.
Public methodGetProperty
Gets the value of a property by name.
Public methodRaiseEvent
Raises the specified event passing the given arguments to the handlers.
Public methodSetField
Sets the value of a field.
Public methodSetIndex
Sets a value to the indexer (
CopyC#
this[T index]
in C#) for the specified index value.
Public methodSetMember
Sets the value of a field or property.
Public methodSetProperty
Sets the value of a property by name.
Public methodStatic memberUnwrap
Gets the value of a dynamic private accessor expression. Use this when the value to get is of type Object, otherwise cast the expression to the desired type.

See Also