Search Results for

    Show / Hide Table of Contents

    Class DlrClass

    Class which represents an instance of a dlr class for simple using in c#

    Inheritance
    System.Object
    System.Dynamic.DynamicObject
    DlrClass
    Implements
    System.Dynamic.IDynamicMetaObjectProvider
    Inherited Members
    System.Dynamic.DynamicObject.TryDeleteMember(System.Dynamic.DeleteMemberBinder)
    System.Dynamic.DynamicObject.TryConvert(System.Dynamic.ConvertBinder, System.Object)
    System.Dynamic.DynamicObject.TryCreateInstance(System.Dynamic.CreateInstanceBinder, System.Object[], System.Object)
    System.Dynamic.DynamicObject.TryInvoke(System.Dynamic.InvokeBinder, System.Object[], System.Object)
    System.Dynamic.DynamicObject.TryBinaryOperation(System.Dynamic.BinaryOperationBinder, System.Object, System.Object)
    System.Dynamic.DynamicObject.TryUnaryOperation(System.Dynamic.UnaryOperationBinder, System.Object)
    System.Dynamic.DynamicObject.TryGetIndex(System.Dynamic.GetIndexBinder, System.Object[], System.Object)
    System.Dynamic.DynamicObject.TrySetIndex(System.Dynamic.SetIndexBinder, System.Object[], System.Object)
    System.Dynamic.DynamicObject.TryDeleteIndex(System.Dynamic.DeleteIndexBinder, System.Object[])
    System.Dynamic.DynamicObject.GetDynamicMemberNames()
    System.Dynamic.DynamicObject.GetMetaObject(System.Linq.Expressions.Expression)
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Simplic.Dlr
    Assembly: Simplic.Dlr.dll
    Syntax
    public class DlrClass : DynamicObject, IDynamicMetaObjectProvider

    Constructors

    | Improve this Doc View Source

    DlrClass(DlrScriptScope, PythonType, Object[])

    Create new dlr class

    Declaration
    public DlrClass(DlrScriptScope scriptScope, PythonType pythonType, params object[] parameter)
    Parameters
    Type Name Description
    DlrScriptScope scriptScope

    Scope which contains the class definition and in which the instance will be created

    PythonType pythonType

    Python-Type instance

    System.Object[] parameter

    Arguments for the constructor

    | Improve this Doc View Source

    DlrClass(DlrScriptScope, String, Object[])

    Create new dlr class

    Declaration
    public DlrClass(DlrScriptScope scriptScope, string className, params object[] parameter)
    Parameters
    Type Name Description
    DlrScriptScope scriptScope

    Scope which contains the class definition and in which the instance will be created

    System.String className

    name of the class

    System.Object[] parameter

    Arguments for the constructor

    Properties

    | Improve this Doc View Source

    Instance

    Represents the dynamic class instance

    Declaration
    public dynamic Instance { get; }
    Property Value
    Type Description
    System.Object
    | Improve this Doc View Source

    ScriptScope

    Scope containing the class defn. / instance

    Declaration
    public DlrScriptScope ScriptScope { get; }
    Property Value
    Type Description
    DlrScriptScope

    Methods

    | Improve this Doc View Source

    CallFunction(String, Object[])

    Declaration
    public dynamic CallFunction(string method, params dynamic[] arguments)
    Parameters
    Type Name Description
    System.String method
    System.Object[] arguments
    Returns
    Type Description
    System.Object
    | Improve this Doc View Source

    CallFunctionIgnoreCase(String, Object[])

    Declaration
    public dynamic CallFunctionIgnoreCase(string method, params dynamic[] arguments)
    Parameters
    Type Name Description
    System.String method
    System.Object[] arguments
    Returns
    Type Description
    System.Object
    | Improve this Doc View Source

    CallMethod(String, Object[])

    Declaration
    public void CallMethod(string method, params dynamic[] arguments)
    Parameters
    Type Name Description
    System.String method
    System.Object[] arguments
    | Improve this Doc View Source

    GetMember(String)

    Declaration
    public dynamic GetMember(string member)
    Parameters
    Type Name Description
    System.String member
    Returns
    Type Description
    System.Object
    | Improve this Doc View Source

    SetMember(String, Object)

    Declaration
    public void SetMember(string name, object value)
    Parameters
    Type Name Description
    System.String name
    System.Object value
    | Improve this Doc View Source

    TryGetMember(GetMemberBinder, out Object)

    Get member over dlr/meta class

    Declaration
    public override bool TryGetMember(GetMemberBinder binder, out object result)
    Parameters
    Type Name Description
    System.Dynamic.GetMemberBinder binder

    Binder to the dynamic member

    System.Object result

    Value which should be returned

    Returns
    Type Description
    System.Boolean

    True if the member exists

    Overrides
    System.Dynamic.DynamicObject.TryGetMember(System.Dynamic.GetMemberBinder, System.Object)
    | Improve this Doc View Source

    TryInvokeMember(InvokeMemberBinder, Object[], out Object)

    Invoke a method

    Declaration
    public override bool TryInvokeMember(InvokeMemberBinder binder, object[] args, out object result)
    Parameters
    Type Name Description
    System.Dynamic.InvokeMemberBinder binder

    Binder to the method

    System.Object[] args

    Arguments for the method

    System.Object result

    Return value of the method

    Returns
    Type Description
    System.Boolean

    True if calling the method was successfull

    Overrides
    System.Dynamic.DynamicObject.TryInvokeMember(System.Dynamic.InvokeMemberBinder, System.Object[], System.Object)
    | Improve this Doc View Source

    TrySetMember(SetMemberBinder, Object)

    Set member over dlr/meta class

    Declaration
    public override bool TrySetMember(SetMemberBinder binder, object value)
    Parameters
    Type Name Description
    System.Dynamic.SetMemberBinder binder

    Binder to the dynamic member

    System.Object value

    Value which should be set

    Returns
    Type Description
    System.Boolean

    True if the value was set success full

    Overrides
    System.Dynamic.DynamicObject.TrySetMember(System.Dynamic.SetMemberBinder, System.Object)

    Implements

    System.Dynamic.IDynamicMetaObjectProvider
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2018 SIMPLIC GmbH
    Generated by DocFx