コード例 #1
0
ファイル: Array.cs プロジェクト: sguzman/BrotliHaxe
        public object _Array_ArrayIterator_cast <T_c>()
        {
            if (global::haxe.lang.Runtime.eq(typeof(T), typeof(T_c)))
            {
                return(this);
            }

            global::_Array.ArrayIterator <T_c> new_me = new global::_Array.ArrayIterator <T_c>(((global::haxe.lang.EmptyObject)(global::haxe.lang.EmptyObject.EMPTY)));
            global::Array <object>             fields = global::Reflect.fields(this);
            int i = 0;

            while ((i < fields.length))
            {
                string field = global::haxe.lang.Runtime.toString(fields[i++]);
                global::Reflect.setField(new_me, field, global::Reflect.field(this, field));
            }

            return(new_me);
        }
コード例 #2
0
ファイル: Array.cs プロジェクト: sguzman/BrotliHaxe
 public static object __hx_cast <T_c_c>(global::_Array.ArrayIterator me)
 {
     return(((me != null)) ? (me._Array_ArrayIterator_cast <T_c_c>()) : default(object));
 }
コード例 #3
0
ファイル: Array.cs プロジェクト: sguzman/BrotliHaxe
 public static void __hx_ctor__Array_ArrayIterator <T_c>(global::_Array.ArrayIterator <T_c> __hx_this, global::Array <T_c> a)
 {
     __hx_this.arr = a;
     __hx_this.len = a.length;
     __hx_this.i   = 0;
 }