ImpromptuObject
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
Constructor | Description |
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 member | Description |
ActLike(otherInterfaces)
Signature: (otherInterfaces:Type []) -> 'TInterface
Modifiers: abstract Type parameters: 'TInterface |
Allows ActLike to be called via dyanmic invocation Returns: |
GetDynamicMemberNames()
Signature: unit -> IEnumerable<string>
Modifiers: abstract |
Returns the enumeration of all dynamic member names. Returns: A sequence that contains 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 -> unit
Modifiers: abstract |
Gets or sets the known interfaces. Set should only be called be the factory methood |
KnownPropertySpec()
Signature: unit -> unit
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 |
Tries to get the type for the property name from the interface. Returns: |