Пример #1
0
        public override object __hx_invokeField(string field, int hash, object[] dynargs)
        {
            if ((field == "toString"))
            {
                return(this.toString());
            }

            global::haxe.lang.Function fn = ((global::haxe.lang.Function)(this.__hx_getField(field, hash, false, false, false)));
            if ((fn == null))
            {
                throw global::haxe.lang.HaxeException.wrap(global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat("Cannot invoke field ", field), ": It does not exist"));
            }

            return(fn.__hx_invokeDynamic(dynargs));
        }
Пример #2
0
        public override object __hx_invokeField(string field, int hash, object[] dynargs)
        {
                        #line 202 "/opt/haxe/std/cs/internal/HxObject.hx"
            if ((field == "toString"))
            {
                                #line 203 "/opt/haxe/std/cs/internal/HxObject.hx"
                return(this.toString());
            }

                        #line 205 "/opt/haxe/std/cs/internal/HxObject.hx"
            global::haxe.lang.Function fn = ((global::haxe.lang.Function)(this.__hx_getField(field, hash, false, false, false)));
            if ((fn == null))
            {
                                #line 207 "/opt/haxe/std/cs/internal/HxObject.hx"
                throw ((global::System.Exception)(global::haxe.Exception.thrown(global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat("Cannot invoke field ", field), ": It does not exist"))));
            }

                        #line 210 "/opt/haxe/std/cs/internal/HxObject.hx"
            return(fn.__hx_invokeDynamic(dynargs));
        }
Пример #3
0
        public override object __hx_invokeField(string field, int hash, object[] dynargs)
        {
                        #line 202 "C:\\HaxeToolkit\\haxe\\std\\cs\\internal\\HxObject.hx"
            if ((field == "toString"))
            {
                                #line 203 "C:\\HaxeToolkit\\haxe\\std\\cs\\internal\\HxObject.hx"
                return(this.toString());
            }

                        #line 205 "C:\\HaxeToolkit\\haxe\\std\\cs\\internal\\HxObject.hx"
            global::haxe.lang.Function fn = ((global::haxe.lang.Function)(this.__hx_getField(field, hash, false, false, false)));
            if ((fn == null))
            {
                                #line 207 "C:\\HaxeToolkit\\haxe\\std\\cs\\internal\\HxObject.hx"
                throw global::haxe.lang.HaxeException.wrap(global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat("Cannot invoke field ", field), ": It does not exist"));
            }

                        #line 210 "C:\\HaxeToolkit\\haxe\\std\\cs\\internal\\HxObject.hx"
            return(fn.__hx_invokeDynamic(dynargs));
        }