RazorEngine


ImpromptuForwarder

Defined in RazorEngine.dll.

Proxies Calls allows subclasser to override do extra actions before or after base invocation

Remarks

This may not be as efficient as other proxies that can work on just static objects or just dynamic objects... Consider this when using.

Constructors

ConstructorDescription
new(target)
Signature: target:obj -> unit

Initializes a new instance of the ImpromptuForwarder class.

new(info, context)
Signature: (info:SerializationInfo * context:StreamingContext) -> unit

Initializes a new instance of the ImpromptuForwarder class.

Instance members

Instance memberDescription
CallTarget
Signature: obj
Modifiers: abstract

Gets the call target.

Equals(other)
Signature: other:ImpromptuForwarder -> bool

Equals the specified other.

Returns:

Equals(obj)
Signature: obj:obj -> bool
Modifiers: abstract

Checks if the objects are equal.

Returns: true when the current instance is equal to the given one.

GetDynamicMemberNames()
Signature: unit -> IEnumerable<string>
Modifiers: abstract

Returns the enumeration of all dynamic member names.

Returns: A sequence that contains dynamic member names.

GetHashCode()
Signature: unit -> int
Modifiers: abstract

Gets the hashcode of the current instance.

Returns: the hash code.

GetObjectData(info, context)
Signature: (info:SerializationInfo * context:StreamingContext) -> unit
Modifiers: abstract

Populates a SerializationInfo with the data needed to serialize the target object.

Target()
Signature: unit -> unit

Gets or sets the target.

TryBinaryOperation(binder, arg, result)
Signature: (binder:BinaryOperationBinder * arg:obj * result:byref<obj>) -> bool
Modifiers: abstract

Forwards the Binary operation

Returns:

TryConvert(binder, result)
Signature: (binder:ConvertBinder * result:byref<obj>) -> bool
Modifiers: abstract

Forwards the convert operation.

Returns: true when successfull

TryGetIndex(binder, indexes, result)
Signature: (binder:GetIndexBinder * indexes:obj [] * result:byref<obj>) -> bool
Modifiers: abstract

Forwards the invoke operation.

Returns: true when successfull

TryGetMember(binder, result)
Signature: (binder:GetMemberBinder * result:byref<obj>) -> bool
Modifiers: abstract

Provides the implementation for operations that get member values. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as getting a value for a property.

Returns: true if the operation is successful; otherwise, false. If this method returns false, the run-time binder of the language determines the behavior. (In most cases, a run-time exception is thrown.)

TryInvoke(binder, args, result)
Signature: (binder:InvokeBinder * args:obj [] * result:byref<obj>) -> bool
Modifiers: abstract

Provides the implementation for operations that invoke an object. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as invoking an object or a delegate.

Returns: true if the operation is successful; otherwise, false. If this method returns false, the run-time binder of the language determines the behavior. (In most cases, a language-specific run-time exception is thrown.

TryInvokeMember(binder, args, result)
Signature: (binder:InvokeMemberBinder * args:obj [] * result:byref<obj>) -> bool
Modifiers: abstract

Forwards the invoke operation.

Returns: true when successfull

TrySetIndex(binder, indexes, value)
Signature: (binder:SetIndexBinder * indexes:obj [] * value:obj) -> bool
Modifiers: abstract

Forwards the invoke operation.

Returns: true when successfull

TrySetMember(binder, value)
Signature: (binder:SetMemberBinder * value:obj) -> bool
Modifiers: abstract

Forwards the invoke operation.

Returns: true when successfull

TryUnaryOperation(binder, result)
Signature: (binder:UnaryOperationBinder * result:byref<obj>) -> bool
Modifiers: abstract

Forwards the unary operation.

Returns:

Fork me on GitHub