public static global::haxe.root.Array <object> getInstanceFields(global::System.Type c) { if (c == typeof(string)) { return(haxe.lang.StringRefl.fields); } Array <object> ret = new Array <object>(); System.Reflection.MemberInfo[] mis = c.GetMembers(System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.FlattenHierarchy); for (int i = 0; i < mis.Length; i++) { if (mis[i] is System.Reflection.PropertyInfo) { continue; } string n = mis[i].Name; if (!n.StartsWith("__hx_") && n[0] != '.' && !n.Equals("Equals") && !n.Equals("ToString") && !n.Equals("GetHashCode") && !n.Equals("GetType")) { ret.push(mis[i].Name); } } return(ret); }
public static global::Array <object> getInstanceFields(global::System.Type c) { unchecked { if (global::haxe.lang.Runtime.refEq(c, typeof(string))) { return(global::haxe.lang.StringRefl.fields); } global::System.Type c1 = ((global::System.Type)(c)); global::Array <object> ret = new global::Array <object>(new object[] {}); global::System.Reflection.BindingFlags this1 = global::System.Reflection.BindingFlags.Public; global::System.Reflection.BindingFlags this2 = ((global::System.Reflection.BindingFlags)((((global::System.Reflection.BindingFlags)(this1)) | ((global::System.Reflection.BindingFlags)(global::System.Reflection.BindingFlags.Instance))))); global::System.Reflection.BindingFlags this3 = ((global::System.Reflection.BindingFlags)((((global::System.Reflection.BindingFlags)(this2)) | ((global::System.Reflection.BindingFlags)(global::System.Reflection.BindingFlags.FlattenHierarchy))))); global::System.Reflection.MemberInfo[] mis = c1.GetMembers(((global::System.Reflection.BindingFlags)(this3))); { int _g1 = 0; int _g = (mis as global::System.Array).Length; while ((_g1 < _g)) { int i = _g1++; global::System.Reflection.MemberInfo i1 = mis[i]; if ((i1 is global::System.Reflection.PropertyInfo)) { continue; } string n = i1.Name; if ((!(n.StartsWith("__hx_")) && ((((((bool)((((uint)(0)) < n.Length)))) ? (((int)(n[0]))) : (-1))) != 46))) { switch (n) { case "Equals": case "GetHashCode": case "GetType": case "ToString": { break; } default: { ret.push(n); break; } } } } } return(ret); } }
public static global::haxe.root.Array <object> getClassFields(global::System.Type c) { Array <object> ret = new Array <object>(); if (c == typeof(string)) { ret.push("fromCharCode"); return(ret); } System.Reflection.MemberInfo[] mis = c.GetMembers(System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Static); for (int i = 0; i < mis.Length; i++) { string n = mis[i].Name; if (!n.StartsWith("__hx_")) { ret.push(mis[i].Name); } } return(ret); }
public static global::Array <string> getInstanceFields(global::System.Type c) { unchecked { #line 206 "/opt/haxe/std/cs/_std/Type.hx" if (global::haxe.lang.Runtime.refEq(c, typeof(string))) { #line 207 "/opt/haxe/std/cs/_std/Type.hx" return(global::haxe.lang.StringRefl.fields); } #line 209 "/opt/haxe/std/cs/_std/Type.hx" global::System.Type c1 = ((global::System.Type)(c)); global::Array <string> ret = new global::Array <string>(new string[] {}); #line 211 "/opt/haxe/std/cs/_std/Type.hx" global::haxe.lang.Null <global::System.Reflection.BindingFlags> initial = new global::haxe.lang.Null <global::System.Reflection.BindingFlags>(global::System.Reflection.BindingFlags.Public, true); #line 211 "/opt/haxe/std/cs/_std/Type.hx" global::System.Reflection.BindingFlags this1 = ((!(initial.hasValue)) ? (default(global::System.Reflection.BindingFlags)) : ((initial).@value)); #line 211 "/opt/haxe/std/cs/_std/Type.hx" global::haxe.lang.Null <global::System.Reflection.BindingFlags> initial1 = new global::haxe.lang.Null <global::System.Reflection.BindingFlags>((((global::System.Reflection.BindingFlags)(this1)) | ((global::System.Reflection.BindingFlags)(global::System.Reflection.BindingFlags.Instance))), true); #line 211 "/opt/haxe/std/cs/_std/Type.hx" global::System.Reflection.BindingFlags this2 = ((!(initial1.hasValue)) ? (default(global::System.Reflection.BindingFlags)) : ((initial1).@value)); #line 211 "/opt/haxe/std/cs/_std/Type.hx" global::haxe.lang.Null <global::System.Reflection.BindingFlags> initial2 = new global::haxe.lang.Null <global::System.Reflection.BindingFlags>((((global::System.Reflection.BindingFlags)(this2)) | ((global::System.Reflection.BindingFlags)(global::System.Reflection.BindingFlags.FlattenHierarchy))), true); #line 211 "/opt/haxe/std/cs/_std/Type.hx" global::System.Reflection.BindingFlags this3 = ((!(initial2.hasValue)) ? (default(global::System.Reflection.BindingFlags)) : ((initial2).@value)); #line 211 "/opt/haxe/std/cs/_std/Type.hx" global::System.Reflection.MemberInfo[] mis = c1.GetMembers(((global::System.Reflection.BindingFlags)(this3))); { #line 212 "/opt/haxe/std/cs/_std/Type.hx" int _g = 0; #line 212 "/opt/haxe/std/cs/_std/Type.hx" int _g1 = (mis as global::System.Array).Length; #line 212 "/opt/haxe/std/cs/_std/Type.hx" while ((_g < _g1)) { #line 212 "/opt/haxe/std/cs/_std/Type.hx" int i = _g++; global::System.Reflection.MemberInfo i1 = ((global::System.Reflection.MemberInfo)(mis[i])); #line 214 "/opt/haxe/std/cs/_std/Type.hx" if ((i1 is global::System.Reflection.PropertyInfo)) { #line 215 "/opt/haxe/std/cs/_std/Type.hx" continue; } #line 216 "/opt/haxe/std/cs/_std/Type.hx" string n = i1.Name; if ((!(n.StartsWith("__hx_")) && (((((((uint)(0)) < n.Length)) ? (((int)(n[0]))) : (-1))) != 46))) { #line 218 "/opt/haxe/std/cs/_std/Type.hx" switch (n) { case "Equals": case "GetHashCode": case "GetType": case "ToString": { #line 219 "/opt/haxe/std/cs/_std/Type.hx" break; } default: { #line 221 "/opt/haxe/std/cs/_std/Type.hx" ret.push(n); #line 221 "/opt/haxe/std/cs/_std/Type.hx" break; } } } } } #line 225 "/opt/haxe/std/cs/_std/Type.hx" return(ret); } #line default }
public static global::haxe.root.Array getInstanceFields(global::System.Type c) { unchecked { #line 206 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx" if (global::haxe.lang.Runtime.refEq(c, typeof(string))) { #line 207 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx" return(global::haxe.lang.StringRefl.fields); } #line 209 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx" global::System.Type c1 = ((global::System.Type)(c)); global::haxe.root.Array ret = new global::haxe.root.Array(new object[] {}); #line 211 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx" object initial = global::System.Reflection.BindingFlags.Public; #line 211 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx" global::System.Reflection.BindingFlags this1 = (((initial == default(object))) ? (default(global::System.Reflection.BindingFlags)) : (((global::System.Reflection.BindingFlags)(initial)))); #line 211 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx" object initial1 = ((global::System.Reflection.BindingFlags)((((global::System.Reflection.BindingFlags)(this1)) | ((global::System.Reflection.BindingFlags)(global::System.Reflection.BindingFlags.Instance))))); #line 211 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx" global::System.Reflection.BindingFlags this2 = (((initial1 == default(object))) ? (default(global::System.Reflection.BindingFlags)) : (((global::System.Reflection.BindingFlags)(initial1)))); #line 211 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx" object initial2 = ((global::System.Reflection.BindingFlags)((((global::System.Reflection.BindingFlags)(this2)) | ((global::System.Reflection.BindingFlags)(global::System.Reflection.BindingFlags.FlattenHierarchy))))); #line 211 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx" global::System.Reflection.BindingFlags this3 = (((initial2 == default(object))) ? (default(global::System.Reflection.BindingFlags)) : (((global::System.Reflection.BindingFlags)(initial2)))); #line 211 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx" global::System.Reflection.MemberInfo[] mis = c1.GetMembers(((global::System.Reflection.BindingFlags)(this3))); { #line 212 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx" int _g = 0; #line 212 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx" int _g1 = (mis as global::System.Array).Length; #line 212 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx" while ((_g < _g1)) { #line 212 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx" int i = _g++; global::System.Reflection.MemberInfo i1 = ((global::System.Reflection.MemberInfo)(mis[i])); #line 214 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx" if ((i1 is global::System.Reflection.PropertyInfo)) { #line 215 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx" continue; } #line 216 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx" string n = i1.Name; if ((!(n.StartsWith("__hx_")) && ((((((bool)((((uint)(0)) < n.Length)))) ? (((int)(n[0]))) : (-1))) != 46))) { #line 218 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx" switch (n) { case "Equals": case "GetHashCode": case "GetType": case "ToString": { #line 219 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx" break; } default: { #line 221 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx" ret.push(n); #line 221 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx" break; } } } } } #line 225 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx" return(ret); } #line default }