RazorEngine


ImpromptuObject

Defined in RazorEngine.dll.
Dynamic Object that knows about the Impromtu Interface return types; Override Typical Dynamic Object methods, and use TypeForName to get the return type of an interface member.

Constructors

ConstructorDescription
new()
Signature: unit -> unit
Initializes a new instance of the ImpromptuObject class.
new(info, context)
Signature: (info:SerializationInfo * context:StreamingContext) -> unit
Initializes a new instance of the ImpromptuObject class. when deserializing

Instance members

Instance memberDescription
ActLike(otherInterfaces)
Signature: (otherInterfaces:Type []) -> 'TInterface
Modifiers: abstract
Type parameters: 'TInterface
GetDynamicMemberNames()
Signature: unit -> IEnumerable<string>
Modifiers: abstract
Returns the enumeration of all dynamic member names.
GetObjectData(info, context)
Signature: (info:SerializationInfo * context:StreamingContext) -> unit
Modifiers: abstract
Populates a SerializationInfo with the data needed to serialize the target object.
KnownInterfaces()
Signature: unit -> IEnumerable<Type>
Modifiers: abstract
Gets or sets the known interfaces. Set should only be called be the factory methood
KnownPropertySpec()
Signature: unit -> IDictionary<string,Type>
Modifiers: abstract
Gets or sets the known fake interface (string method name to return type mapping).
TryTypeForName(name, returnType)
Signature: (name:string * returnType:byref<Type>) -> bool
Modifiers: abstract
Fork me on GitHub