Class DynamicPython
For internal use. This wraps python objects and gives access for .Net users. This class is visible, but should always be used with the special "dynamic" type.
Inheritance
System.Object
DynamicPython
Namespace: DesignData.SDS2.Python
Assembly: DesignData.SDS2.Python.dll
Syntax
public class DynamicPython : DynamicObject
Methods
ToString()
Return the string representation of the python object. overriding object.ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
TryGetMember(GetMemberBinder, out Object)
For internal use. This fetches a named property from a python object and returns a DynamicPython wrapper for it.
Declaration
public override bool TryGetMember(GetMemberBinder binder, out object result)
Parameters
Type | Name | Description |
---|---|---|
System.Dynamic.GetMemberBinder | binder | |
System.Object | result |
Returns
Type | Description |
---|---|
System.Boolean |
TryInvoke(InvokeBinder, Object[], out Object)
If this property is a python callable, you can call it
Declaration
public override bool TryInvoke(InvokeBinder binder, object[] arguments, out object result)
Parameters
Type | Name | Description |
---|---|---|
System.Dynamic.InvokeBinder | binder | |
System.Object[] | arguments | |
System.Object | result |
Returns
Type | Description |
---|---|
System.Boolean |
TrySetMember(SetMemberBinder, Object)
Sets an attribute on a python object.
Declaration
public override bool TrySetMember(SetMemberBinder binder, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Dynamic.SetMemberBinder | binder | |
System.Object | value |
Returns
Type | Description |
---|---|
System.Boolean |