DynamicAppType

Class Overview
Allows accessing type-specific operations in the target application.
Allows using the dynamic keyword to access static FriendlyOperations in a class just as you would access ordinary methods, properties, and fields.
Also allows creating objects in the target application by using their class name.
One limitation is that it is not possible to call static methods with the same name as those defined in the DynamicObject class.
If you absolutely need to be able to do so, please use the FriendlyOperation APIs.



public DynamicAppType (AppFriend app)
Description
Constructor

Parameter
app
Application manipulation object



public DynamicAppType (AppFriend app, string name)
Description
Constructor

Parameters
app
Application manipulation object
name
Type name



public dynamic Equals (Object obj)
Description
Calls the static Equals() method, if one is defined.

Return value
Returned as a DynamicAppVar

Parameters
obj
Object.



public dynamic GetHashCode ()
Description
Calls the static GetHashCode() method, if it is defined.

Return value
Returned as a DynamicAppVar




public dynamic GetType ()
Description
Calls the static GetType() method, if it is defined.

Return value
Type object returned as a DynamicAppVar



public dynamic   MemberwiseClone ()
Commentary
Calls the static MemberwiseClone() method, if it is defined.

Return value
Returned as a DynamicAppVar



public dynamic ToString ()
Description
Calls the static ToString() method, if it is defined.

Return value
Returned as a DynamicAppVar




public bool TryGetMember (GetMemberBinder binder, ref Object & result)
Description
Dynamically resolves get access to properties and fields.
Cannot be used asynchorously.
If you need asynchronous access, please cast the object to an AppVar
and use a FriendlyOperation, or call it in the form of a method by specifying a
method name equal to the property name.

Return value
Success or failure

Parameters
binder
Binder
result
Retrieved result



public bool TryInvoke (InvokeBinder binder, ref Object [] args, ref Object & result)
Description
Dynamically resolves delegate types.
When called on this class, calls the constructor in the target application and creates a class instance.

Return value
Success or failure

Parameters
binder
Binder
args
Arguments
result
Return value



public bool TryInvokeMember (InvokeMemberBinder binder, ref Object [] args, ref Object & result)
Description
Dynamically resolves method calls
To specify Async and/or OperationTypeInfo, please pass these as arguments.
They can be included in any order.

Return value
Success or failure

Parameters
binder
Binder
args
Arguments
result
Return value



public bool TrySetMember (SetMemberBinder binder, Object value)
Description
Dynamically resolves set access to properties and fields.
Cannot be used asynchronously.
If you need asynchronous access, please cast the object to an AppVar
and use a FriendlyOperation, or call it in the form of a method by specifying a
method name equal to the property name.
 

 
Return value
Success or failure

Parameters
binder
Binder
value
Value to set


JR