public override object InvokeMember(string name, global::System.Reflection.BindingFlags invokeAttr, global::System.Reflection.Binder binder, object target, object[] args, global::System.Reflection.ParameterModifier[] modifiers, global::System.Globalization.CultureInfo culture, string[] namedParameters) { throw new NotImplementedException(); }
public static global::System.Action GetAction(this global::System.Object target, global::System.String name, global::System.Reflection.BindingFlags flags) { return(target.GetMethod <global::System.Action>(target.GetType(), name, flags)); }
public static global::System.Action <T1, T2, T3, T4, T5, T6, T7, T8> GetAction <T1, T2, T3, T4, T5, T6, T7, T8>(this global::System.Object target, global::System.String name, global::System.Reflection.BindingFlags flags) { return(target.GetMethod <global::System.Action <T1, T2, T3, T4, T5, T6, T7, T8> >(target.GetType(), name, flags)); }
public static global::System.Func <T, TResult> GetFunc <T, TResult>(this global::System.Type t, global::System.String name, global::System.Reflection.BindingFlags flags) { return(((global::System.Object)null).GetMethod <global::System.Func <T, TResult> >(t, name, flags)); }
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 object slowGetField(object obj, string field, bool throwErrors) { if ((obj == null)) { if (throwErrors) { throw new global::System.NullReferenceException(global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat("Cannot access field \'", field), "\' of null.")); } else { return(null); } } global::System.Type t = ((global::System.Type)((obj as global::System.Type))); global::System.Reflection.BindingFlags bf = default(global::System.Reflection.BindingFlags); if ((t == null)) { string s = ((string)((obj as string))); if (!(string.Equals(s, null))) { return(global::haxe.lang.StringRefl.handleGetField(s, field, throwErrors)); } t = ((global::System.Type)(obj.GetType())); bf = ((global::System.Reflection.BindingFlags)((((global::System.Reflection.BindingFlags)((((global::System.Reflection.BindingFlags)(global::System.Reflection.BindingFlags.Instance)) | ((global::System.Reflection.BindingFlags)(global::System.Reflection.BindingFlags.Public))))) | ((global::System.Reflection.BindingFlags)(global::System.Reflection.BindingFlags.FlattenHierarchy))))); } else { if (((t == ((global::System.Type)(typeof(string)))) && string.Equals(field, "fromCharCode"))) { return(new global::haxe.lang.Closure(typeof(global::haxe.lang.StringExt), field, 0)); } obj = null; bf = ((global::System.Reflection.BindingFlags)((((global::System.Reflection.BindingFlags)(global::System.Reflection.BindingFlags.Static)) | ((global::System.Reflection.BindingFlags)(global::System.Reflection.BindingFlags.Public))))); } global::System.Reflection.FieldInfo f = t.GetField(((string)(field)), ((global::System.Reflection.BindingFlags)(bf))); if ((f != null)) { return(global::haxe.lang.Runtime.unbox(f.GetValue(((object)(obj))))); } else { global::System.Reflection.PropertyInfo prop = t.GetProperty(((string)(field)), ((global::System.Reflection.BindingFlags)(bf))); if ((prop == null)) { global::System.Reflection.MemberInfo[] m = t.GetMember(((string)(field)), ((global::System.Reflection.BindingFlags)(bf))); if ((((m as global::System.Array).Length == 0) && ((string.Equals(field, "__get") || string.Equals(field, "__set"))))) { m = t.GetMember(((string)(((string.Equals(field, "__get")) ? ("get_Item") : ("set_Item")))), ((global::System.Reflection.BindingFlags)(bf))); } if (((m as global::System.Array).Length > 0)) { return(new global::haxe.lang.Closure((((obj != null)) ? (obj) : ((object)(t))), field, 0)); } else { if (t.IsCOMObject) { try { return(t.InvokeMember(((string)(field)), ((global::System.Reflection.BindingFlags)(global::System.Reflection.BindingFlags.GetProperty)), default(global::System.Reflection.Binder), ((object)(obj)), ((object[])(new object[0])))); } catch (global::System.Exception e) { global::haxe.lang.Exceptions.exception = e; } } if (throwErrors) { throw global::haxe.lang.HaxeException.wrap(global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat("Cannot access field \'", field), "\'.")); } else { return(null); } } } return(global::haxe.lang.Runtime.unbox(prop.GetValue(((object)(obj)), default(object[])))); } }
public static object slowCallField(object obj, string field, global::Array args) { if ((string.Equals(field, "toString") && (((args == null) || (((int)(global::haxe.lang.Runtime.getField_f(args, "length", 520590566, true))) == 0))))) { return(obj.ToString()); } if ((args == null)) { args = new global::Array <object>(new object[] {}); } global::System.Reflection.BindingFlags bf = default(global::System.Reflection.BindingFlags); global::System.Type t = ((global::System.Type)((obj as global::System.Type))); if ((t == null)) { string s = ((string)((obj as string))); if (!(string.Equals(s, null))) { return(global::haxe.lang.StringRefl.handleCallField(s, field, args)); } t = obj.GetType(); global::System.Reflection.BindingFlags this1 = global::System.Reflection.BindingFlags.Instance; global::System.Reflection.BindingFlags this2 = ((global::System.Reflection.BindingFlags)((((global::System.Reflection.BindingFlags)(this1)) | ((global::System.Reflection.BindingFlags)(global::System.Reflection.BindingFlags.Public))))); global::System.Reflection.BindingFlags this3 = ((global::System.Reflection.BindingFlags)((((global::System.Reflection.BindingFlags)(this2)) | ((global::System.Reflection.BindingFlags)(global::System.Reflection.BindingFlags.FlattenHierarchy))))); bf = ((global::System.Reflection.BindingFlags)(this3)); } else { if (((t == ((global::System.Type)(typeof(string)))) && string.Equals(field, "fromCharCode"))) { return(global::haxe.lang.StringExt.fromCharCode(global::haxe.lang.Runtime.toInt(args[0]))); } obj = null; global::System.Reflection.BindingFlags this4 = global::System.Reflection.BindingFlags.Static; global::System.Reflection.BindingFlags this5 = ((global::System.Reflection.BindingFlags)((((global::System.Reflection.BindingFlags)(this4)) | ((global::System.Reflection.BindingFlags)(global::System.Reflection.BindingFlags.Public))))); bf = ((global::System.Reflection.BindingFlags)(this5)); } global::System.Reflection.MethodBase[] mis = ((global::System.Reflection.MethodBase[])(t.GetMethods(((global::System.Reflection.BindingFlags)(bf))))); int last = 0; { int _g1 = 0; int _g = (mis as global::System.Array).Length; while ((_g1 < _g)) { int i = _g1++; string name = (mis[i] as global::System.Reflection.MemberInfo).Name; if (string.Equals(name, field)) { mis[last++] = mis[i]; } } } if (((last == 0) && ((string.Equals(field, "__get") || string.Equals(field, "__set"))))) { if (string.Equals(field, "__get")) { field = "get_Item"; } else { field = "set_Item"; } { int _g11 = 0; int _g2 = (mis as global::System.Array).Length; while ((_g11 < _g2)) { int i1 = _g11++; string name1 = (mis[i1] as global::System.Reflection.MemberInfo).Name; if (string.Equals(name1, field)) { mis[last++] = mis[i1]; } } } } if (((last == 0) && t.IsCOMObject)) { object[] oargs = new object[((int)(global::haxe.lang.Runtime.getField_f(args, "length", 520590566, true)))]; { int _g12 = 0; int _g3 = (oargs as global::System.Array).Length; while ((_g12 < _g3)) { int i2 = _g12++; oargs[i2] = args[i2]; } } return(t.InvokeMember(((string)(field)), ((global::System.Reflection.BindingFlags)(global::System.Reflection.BindingFlags.InvokeMethod)), default(global::System.Reflection.Binder), ((object)(obj)), ((object[])(oargs)))); } if ((last == 0)) { throw global::haxe.lang.HaxeException.wrap(global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat("Method \"", field), "\" not found on type "), global::Std.@string(t))); } return(global::haxe.lang.Runtime.callMethod(obj, mis, last, args)); }
public override global::System.Reflection.PropertyInfo[] GetProperties(global::System.Reflection.BindingFlags bindingAttr) { return(null); }
public override object InvokeMember(string name, global::System.Reflection.BindingFlags invokeAttr, global::System.Reflection.Binder binder, object target, object[] args, global::System.Reflection.ParameterModifier[] modifiers, global::System.Globalization.CultureInfo culture, string[] namedParameters) { return(null); }
public override global::System.Reflection.MemberInfo[] GetMembers(global::System.Reflection.BindingFlags bindingAttr) { throw new NotImplementedException(); }
public override Type[] GetNestedTypes(global::System.Reflection.BindingFlags bindingAttr) { return(null); }
public override global::System.Reflection.FieldInfo GetField(string name, global::System.Reflection.BindingFlags bindingAttr) { throw new NotImplementedException(); }
protected override global::System.Reflection.PropertyInfo GetPropertyImpl(string name, global::System.Reflection.BindingFlags bindingAttr, global::System.Reflection.Binder binder, Type returnType, Type[] types, global::System.Reflection.ParameterModifier[] modifiers) { throw new NotImplementedException(); }
protected override global::System.Reflection.MethodInfo GetMethodImpl(string name, global::System.Reflection.BindingFlags bindingAttr, global::System.Reflection.Binder binder, global::System.Reflection.CallingConventions callConvention, Type[] types, global::System.Reflection.ParameterModifier[] modifiers) { throw new NotImplementedException(); }
public static global::DataVault.Core.Helpers.Action <T1, T2, T3, T4, T5, T6> GetAction <T1, T2, T3, T4, T5, T6>(this global::System.Object target, global::System.String name, global::System.Reflection.BindingFlags flags) { return(target.GetMethod <global::DataVault.Core.Helpers.Action <T1, T2, T3, T4, T5, T6> >(target.GetType(), name, flags)); }
protected override global::System.Reflection.MethodInfo GetMethodImpl(string name, global::System.Reflection.BindingFlags bindingAttr, global::System.Reflection.Binder binder, global::System.Reflection.CallingConventions callConvention, Type[] types, global::System.Reflection.ParameterModifier[] modifiers) { return(null); }
public static global::DataVault.Core.Helpers.Action <T1, T2, T3, T4, T5, T6, T7> GetAction <T1, T2, T3, T4, T5, T6, T7>(this global::System.Type t, global::System.String name, global::System.Reflection.BindingFlags flags) { return(((global::System.Object)null).GetMethod <global::DataVault.Core.Helpers.Action <T1, T2, T3, T4, T5, T6, T7> >(t, name, flags)); }
protected override global::System.Reflection.PropertyInfo GetPropertyImpl(string name, global::System.Reflection.BindingFlags bindingAttr, global::System.Reflection.Binder binder, Type returnType, Type[] types, global::System.Reflection.ParameterModifier[] modifiers) { return(null); }
public static object slowSetField(object obj, string field, object @value) { if ((obj == null)) { throw new global::System.NullReferenceException(global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat("Cannot access field \'", field), "\' of null.")); } global::System.Type t = ((global::System.Type)((obj as global::System.Type))); global::System.Reflection.BindingFlags bf = default(global::System.Reflection.BindingFlags); if ((t == null)) { t = ((global::System.Type)(obj.GetType())); bf = ((global::System.Reflection.BindingFlags)((((global::System.Reflection.BindingFlags)((((global::System.Reflection.BindingFlags)(global::System.Reflection.BindingFlags.Instance)) | ((global::System.Reflection.BindingFlags)(global::System.Reflection.BindingFlags.Public))))) | ((global::System.Reflection.BindingFlags)(global::System.Reflection.BindingFlags.FlattenHierarchy))))); } else { obj = null; bf = ((global::System.Reflection.BindingFlags)((((global::System.Reflection.BindingFlags)(global::System.Reflection.BindingFlags.Static)) | ((global::System.Reflection.BindingFlags)(global::System.Reflection.BindingFlags.Public))))); } global::System.Reflection.FieldInfo f = t.GetField(((string)(field)), ((global::System.Reflection.BindingFlags)(bf))); if ((f != null)) { if ((f.FieldType as global::System.Reflection.MemberInfo).ToString().StartsWith("haxe.lang.Null")) { @value = global::haxe.lang.Runtime.mkNullable(@value, f.FieldType); } if ((((@value != null) && global::System.Object.ReferenceEquals(((global::System.Type)(typeof(global::System.Double))), ((object)(@value.GetType())))) && !(global::System.Object.ReferenceEquals(((object)(t)), ((object)(f.FieldType)))))) { @value = ((global::System.IConvertible)((@value as global::System.IConvertible))).ToType(((global::System.Type)(f.FieldType)), default(global::System.IFormatProvider)); } f.SetValue(((object)(obj)), ((object)(@value))); return(@value); } else { global::System.Reflection.PropertyInfo prop = t.GetProperty(((string)(field)), ((global::System.Reflection.BindingFlags)(bf))); if ((prop == null)) { if (t.IsCOMObject) { try { return(t.InvokeMember(((string)(field)), ((global::System.Reflection.BindingFlags)(global::System.Reflection.BindingFlags.SetProperty)), default(global::System.Reflection.Binder), ((object)(obj)), ((object[])(new object[] { ((object)(@value)) })))); } catch (global::System.Exception e) { global::haxe.lang.Exceptions.exception = e; } } throw global::haxe.lang.HaxeException.wrap(global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat("Field \'", field), "\' not found for writing from Class "), global::Std.@string(t))); } if ((prop.PropertyType as global::System.Reflection.MemberInfo).ToString().StartsWith("haxe.lang.Null")) { @value = global::haxe.lang.Runtime.mkNullable(@value, prop.PropertyType); } if ((global::System.Object.ReferenceEquals(((global::System.Type)(typeof(global::System.Double))), ((object)(@value.GetType()))) && !(global::System.Object.ReferenceEquals(((object)(t)), ((object)(f.FieldType)))))) { @value = ((global::System.IConvertible)((@value as global::System.IConvertible))).ToType(((global::System.Type)(f.FieldType)), default(global::System.IFormatProvider)); } prop.SetValue(((object)(obj)), ((object)(@value)), default(object[])); return(@value); } }
public override global::System.Reflection.ConstructorInfo[] GetConstructors(global::System.Reflection.BindingFlags bindingAttr) { return(null); }
public static global::DataVault.Core.Helpers.Func <T1, T2, T3, T4, T5, T6, T7, TResult> GetFunc <T1, T2, T3, T4, T5, T6, T7, TResult>(this global::System.Object target, global::System.Type t, global::System.String name, global::System.Reflection.BindingFlags flags) { return(target.GetMethod <global::DataVault.Core.Helpers.Func <T1, T2, T3, T4, T5, T6, T7, TResult> >(t, name, flags)); }
public override global::System.Reflection.EventInfo[] GetEvents(global::System.Reflection.BindingFlags bindingAttr) { return(null); }
public static global::System.Func <T1, T2, TResult> GetFunc <T1, T2, TResult>(this global::System.Object target, global::System.String name, global::System.Reflection.BindingFlags flags) { return(target.GetMethod <global::System.Func <T1, T2, TResult> >(target.GetType(), name, flags)); }
public override global::System.Reflection.FieldInfo GetField(string name, global::System.Reflection.BindingFlags bindingAttr) { return(null); }
public static global::System.Action <T1, T2, T3> GetAction <T1, T2, T3>(this global::System.Object target, global::System.Type t, global::System.String name, global::System.Reflection.BindingFlags flags) { return(target.GetMethod <global::System.Action <T1, T2, T3> >(t, name, flags)); }
public override global::System.Reflection.MethodInfo[] GetMethods(global::System.Reflection.BindingFlags bindingAttr) { return(null); }
public static global::System.Action GetAction(this global::System.Type t, global::System.String name, global::System.Reflection.BindingFlags flags) { return(((global::System.Object)null).GetMethod <global::System.Action>(t, name, flags)); }
public override Type GetNestedType(string name, global::System.Reflection.BindingFlags bindingAttr) { return(null); }
public static global::System.Action <T1, T2, T3, T4, T5, T6, T7, T8, T9> GetAction <T1, T2, T3, T4, T5, T6, T7, T8, T9>(this global::System.Type t, global::System.String name, global::System.Reflection.BindingFlags flags) { return(((global::System.Object)null).GetMethod <global::System.Action <T1, T2, T3, T4, T5, T6, T7, T8, T9> >(t, name, flags)); }
public override global::System.Reflection.PropertyInfo[] GetProperties(global::System.Reflection.BindingFlags bindingAttr) { throw new NotImplementedException(); }