Inheritance: DynamicObject
示例#1
0
        public StringFunction(IContext context)
            : base(null, null, context)
        {
            var prototype = new StringObject();

            this.SetValue("prototype", prototype);
            prototype.SetValue("toString", new LambdaCallable(ToString));
        }