using System; using System.Collections.Generic; using System.Reflection; using System.Runtime.InteropServices; using UnityFusion.CLR.TypeSystem; using UnityFusion.CLR.Method; using UnityFusion.Runtime.Enviorment; using UnityFusion.Runtime.Intepreter; using UnityFusion.Runtime.Stack; using UnityFusion.Reflection; using UnityFusion.CLR.Utils; #if DEBUG && !DISABLE_UNITYFUSION_DEBUG using AutoList = System.Collections.Generic.List; #else using AutoList = UnityFusion.Other.UncheckedList; #endif namespace UnityFusion.Runtime.Generated { unsafe class System_Char_Binding { public static void Register(UnityFusion.Runtime.Enviorment.AppDomain app) { BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly; MethodBase method; Type[] args; Type type = typeof(System.Char); args = new Type[] { }; method = type.GetMethod("GetHashCode", flag, null, args, null); app.RegisterCLRMethodRedirection(method, GetHashCode_0); args = new Type[] {typeof(System.Object)}; method = type.GetMethod("Equals", flag, null, args, null); app.RegisterCLRMethodRedirection(method, Equals_1); args = new Type[] {typeof(System.Char)}; method = type.GetMethod("Equals", flag, null, args, null); app.RegisterCLRMethodRedirection(method, Equals_2); args = new Type[] {typeof(System.Object)}; method = type.GetMethod("CompareTo", flag, null, args, null); app.RegisterCLRMethodRedirection(method, CompareTo_3); args = new Type[] {typeof(System.Char)}; method = type.GetMethod("CompareTo", flag, null, args, null); app.RegisterCLRMethodRedirection(method, CompareTo_4); args = new Type[] { }; method = type.GetMethod("ToString", flag, null, args, null); app.RegisterCLRMethodRedirection(method, ToString_5); args = new Type[] {typeof(System.IFormatProvider)}; method = type.GetMethod("ToString", flag, null, args, null); app.RegisterCLRMethodRedirection(method, ToString_6); args = new Type[] {typeof(System.Char)}; method = type.GetMethod("ToString", flag, null, args, null); app.RegisterCLRMethodRedirection(method, ToString_7); args = new Type[] {typeof(System.String)}; method = type.GetMethod("Parse", flag, null, args, null); app.RegisterCLRMethodRedirection(method, Parse_8); args = new Type[] {typeof(System.String), typeof(System.Char).MakeByRefType()}; method = type.GetMethod("TryParse", flag, null, args, null); app.RegisterCLRMethodRedirection(method, TryParse_9); // args = new Type[] {typeof(System.Char)}; // method = type.GetMethod("IsDigit", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, IsDigit_10); args = new Type[] {typeof(System.Char)}; method = type.GetMethod("IsLetter", flag, null, args, null); app.RegisterCLRMethodRedirection(method, IsLetter_11); args = new Type[] {typeof(System.Char)}; method = type.GetMethod("IsWhiteSpace", flag, null, args, null); app.RegisterCLRMethodRedirection(method, IsWhiteSpace_12); args = new Type[] {typeof(System.Char)}; method = type.GetMethod("IsUpper", flag, null, args, null); app.RegisterCLRMethodRedirection(method, IsUpper_13); args = new Type[] {typeof(System.Char)}; method = type.GetMethod("IsLower", flag, null, args, null); app.RegisterCLRMethodRedirection(method, IsLower_14); // args = new Type[] {typeof(System.Char)}; // method = type.GetMethod("IsPunctuation", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, IsPunctuation_15); // args = new Type[] {typeof(System.Char)}; // method = type.GetMethod("IsLetterOrDigit", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, IsLetterOrDigit_16); args = new Type[] {typeof(System.Char), typeof(System.Globalization.CultureInfo)}; method = type.GetMethod("ToUpper", flag, null, args, null); app.RegisterCLRMethodRedirection(method, ToUpper_17); args = new Type[] {typeof(System.Char)}; method = type.GetMethod("ToUpper", flag, null, args, null); app.RegisterCLRMethodRedirection(method, ToUpper_18); // args = new Type[] {typeof(System.Char)}; // method = type.GetMethod("ToUpperInvariant", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, ToUpperInvariant_19); args = new Type[] {typeof(System.Char), typeof(System.Globalization.CultureInfo)}; method = type.GetMethod("ToLower", flag, null, args, null); app.RegisterCLRMethodRedirection(method, ToLower_20); args = new Type[] {typeof(System.Char)}; method = type.GetMethod("ToLower", flag, null, args, null); app.RegisterCLRMethodRedirection(method, ToLower_21); // args = new Type[] {typeof(System.Char)}; // method = type.GetMethod("ToLowerInvariant", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, ToLowerInvariant_22); // args = new Type[] { }; // method = type.GetMethod("GetTypeCode", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, GetTypeCode_23); // args = new Type[] {typeof(System.Char)}; // method = type.GetMethod("IsControl", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, IsControl_24); // args = new Type[] {typeof(System.String), typeof(System.Int32)}; // method = type.GetMethod("IsControl", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, IsControl_25); // args = new Type[] {typeof(System.String), typeof(System.Int32)}; // method = type.GetMethod("IsDigit", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, IsDigit_26); // args = new Type[] {typeof(System.String), typeof(System.Int32)}; // method = type.GetMethod("IsLetter", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, IsLetter_27); // args = new Type[] {typeof(System.String), typeof(System.Int32)}; // method = type.GetMethod("IsLetterOrDigit", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, IsLetterOrDigit_28); // args = new Type[] {typeof(System.String), typeof(System.Int32)}; // method = type.GetMethod("IsLower", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, IsLower_29); // args = new Type[] {typeof(System.Char)}; // method = type.GetMethod("IsNumber", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, IsNumber_30); // args = new Type[] {typeof(System.String), typeof(System.Int32)}; // method = type.GetMethod("IsNumber", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, IsNumber_31); // args = new Type[] {typeof(System.String), typeof(System.Int32)}; // method = type.GetMethod("IsPunctuation", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, IsPunctuation_32); // args = new Type[] {typeof(System.Char)}; // method = type.GetMethod("IsSeparator", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, IsSeparator_33); // args = new Type[] {typeof(System.String), typeof(System.Int32)}; // method = type.GetMethod("IsSeparator", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, IsSeparator_34); // args = new Type[] {typeof(System.Char)}; // method = type.GetMethod("IsSurrogate", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, IsSurrogate_35); // args = new Type[] {typeof(System.String), typeof(System.Int32)}; // method = type.GetMethod("IsSurrogate", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, IsSurrogate_36); // args = new Type[] {typeof(System.Char)}; // method = type.GetMethod("IsSymbol", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, IsSymbol_37); // args = new Type[] {typeof(System.String), typeof(System.Int32)}; // method = type.GetMethod("IsSymbol", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, IsSymbol_38); // args = new Type[] {typeof(System.String), typeof(System.Int32)}; // method = type.GetMethod("IsUpper", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, IsUpper_39); // args = new Type[] {typeof(System.String), typeof(System.Int32)}; // method = type.GetMethod("IsWhiteSpace", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, IsWhiteSpace_40); // args = new Type[] {typeof(System.Char)}; // method = type.GetMethod("GetUnicodeCategory", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, GetUnicodeCategory_41); // args = new Type[] {typeof(System.String), typeof(System.Int32)}; // method = type.GetMethod("GetUnicodeCategory", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, GetUnicodeCategory_42); // args = new Type[] {typeof(System.Char)}; // method = type.GetMethod("GetNumericValue", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, GetNumericValue_43); // args = new Type[] {typeof(System.String), typeof(System.Int32)}; // method = type.GetMethod("GetNumericValue", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, GetNumericValue_44); // args = new Type[] {typeof(System.Char)}; // method = type.GetMethod("IsHighSurrogate", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, IsHighSurrogate_45); // args = new Type[] {typeof(System.String), typeof(System.Int32)}; // method = type.GetMethod("IsHighSurrogate", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, IsHighSurrogate_46); // args = new Type[] {typeof(System.Char)}; // method = type.GetMethod("IsLowSurrogate", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, IsLowSurrogate_47); // args = new Type[] {typeof(System.String), typeof(System.Int32)}; // method = type.GetMethod("IsLowSurrogate", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, IsLowSurrogate_48); // args = new Type[] {typeof(System.String), typeof(System.Int32)}; // method = type.GetMethod("IsSurrogatePair", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, IsSurrogatePair_49); // args = new Type[] {typeof(System.Char), typeof(System.Char)}; // method = type.GetMethod("IsSurrogatePair", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, IsSurrogatePair_50); // args = new Type[] {typeof(System.Int32)}; // method = type.GetMethod("ConvertFromUtf32", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, ConvertFromUtf32_51); // args = new Type[] {typeof(System.Char), typeof(System.Char)}; // method = type.GetMethod("ConvertToUtf32", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, ConvertToUtf32_52); // args = new Type[] {typeof(System.String), typeof(System.Int32)}; // method = type.GetMethod("ConvertToUtf32", flag, null, args, null); // app.RegisterCLRMethodRedirection(method, ConvertToUtf32_53); // field = type.GetField("MaxValue", flag); // app.RegisterCLRFieldGetter(field, get_MaxValue_0); // app.RegisterCLRFieldBinding(field, CopyToStack_MaxValue_0, null); // field = type.GetField("MinValue", flag); // app.RegisterCLRFieldGetter(field, get_MinValue_1); // app.RegisterCLRFieldBinding(field, CopyToStack_MinValue_1, null); app.RegisterCLRCreateArrayInstance(type, s => new System.Char[s]); } static System.Char GetInstance(UnityFusion.Runtime.Enviorment.AppDomain __domain, StackObject* ptr_of_this_method, AutoList __mStack) { ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method); System.Char instance_of_this_method; switch (ptr_of_this_method->ObjectType) { case ObjectTypes.FieldReference: { var instance_of_fieldReference = __mStack[ptr_of_this_method->Value]; if (instance_of_fieldReference is ILTypeInstance) { instance_of_this_method = (System.Char) typeof(System.Char).CheckCLRTypes( ((ILTypeInstance) instance_of_fieldReference)[ptr_of_this_method->ValueLow]); } else { var t = __domain.GetType(instance_of_fieldReference.GetType()) as CLRType; instance_of_this_method = (System.Char) t.GetFieldValue(ptr_of_this_method->ValueLow, instance_of_fieldReference); } } break; case ObjectTypes.StaticFieldReference: { var t = __domain.GetType(ptr_of_this_method->Value); if (t is ILType) { instance_of_this_method = (System.Char) typeof(System.Char).CheckCLRTypes( ((ILType) t).StaticInstance[ptr_of_this_method->ValueLow]); } else { instance_of_this_method = (System.Char) ((CLRType) t).GetFieldValue(ptr_of_this_method->ValueLow, null); } } break; case ObjectTypes.ArrayReference: { var instance_of_arrayReference = __mStack[ptr_of_this_method->Value] as System.Char[]; instance_of_this_method = instance_of_arrayReference[ptr_of_this_method->ValueLow]; } break; default: instance_of_this_method = (char) ptr_of_this_method->Value; break; } return instance_of_this_method; } static StackObject* GetHashCode_0(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Char instance_of_this_method = GetInstance(__domain, ptr_of_this_method, __mStack); var result_of_this_method = instance_of_this_method.GetHashCode(); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method; return __ret + 1; } static StackObject* Equals_1(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Object @obj = (System.Object) typeof(System.Object).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.Char instance_of_this_method = GetInstance(__domain, ptr_of_this_method, __mStack); var result_of_this_method = instance_of_this_method.Equals(@obj); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* Equals_2(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Char @obj = (char) ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.Char instance_of_this_method = GetInstance(__domain, ptr_of_this_method, __mStack); var result_of_this_method = instance_of_this_method.Equals(@obj); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* CompareTo_3(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Object @value = (System.Object) typeof(System.Object).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.Char instance_of_this_method = GetInstance(__domain, ptr_of_this_method, __mStack); var result_of_this_method = instance_of_this_method.CompareTo(@value); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method; return __ret + 1; } static StackObject* CompareTo_4(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Char @value = (char) ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.Char instance_of_this_method = GetInstance(__domain, ptr_of_this_method, __mStack); var result_of_this_method = instance_of_this_method.CompareTo(@value); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method; return __ret + 1; } static StackObject* ToString_5(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Char instance_of_this_method = GetInstance(__domain, ptr_of_this_method, __mStack); var result_of_this_method = instance_of_this_method.ToString(); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* ToString_6(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.IFormatProvider @provider = (System.IFormatProvider) typeof(System.IFormatProvider).CheckCLRTypes( StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.Char instance_of_this_method = GetInstance(__domain, ptr_of_this_method, __mStack); var result_of_this_method = instance_of_this_method.ToString(@provider); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* ToString_7(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Char @c = (char) ptr_of_this_method->Value; var result_of_this_method = System.Char.ToString(@c); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* Parse_8(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.String @s = (System.String) typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = System.Char.Parse(@s); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = (int) result_of_this_method; return __ret + 1; } static StackObject* TryParse_9(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Char @result = (System.Char) __intp.RetriveInt32(ptr_of_this_method, __mStack); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.String @s = (System.String) typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); var result_of_this_method = System.Char.TryParse(@s, out @result); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); switch (ptr_of_this_method->ObjectType) { case ObjectTypes.StackObjectReference: { var ___dst = ILIntepreter.ResolveReference(ptr_of_this_method); ___dst->ObjectType = ObjectTypes.Integer; ___dst->Value = (int) @result; } break; case ObjectTypes.FieldReference: { var ___obj = __mStack[ptr_of_this_method->Value]; if (___obj is ILTypeInstance) { ((ILTypeInstance) ___obj)[ptr_of_this_method->ValueLow] = @result; } else { var ___type = __domain.GetType(___obj.GetType()) as CLRType; ___type.SetFieldValue(ptr_of_this_method->ValueLow, ref ___obj, @result); } } break; case ObjectTypes.StaticFieldReference: { var ___type = __domain.GetType(ptr_of_this_method->Value); if (___type is ILType) { ((ILType) ___type).StaticInstance[ptr_of_this_method->ValueLow] = @result; } else { ((CLRType) ___type).SetStaticFieldValue(ptr_of_this_method->ValueLow, @result); } } break; case ObjectTypes.ArrayReference: { var instance_of_arrayReference = __mStack[ptr_of_this_method->Value] as System.Char[]; instance_of_arrayReference[ptr_of_this_method->ValueLow] = @result; } break; } __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); __intp.Free(ptr_of_this_method); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* IsLetter_11(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Char @c = (char) ptr_of_this_method->Value; var result_of_this_method = System.Char.IsLetter(@c); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* IsWhiteSpace_12(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Char @c = (char) ptr_of_this_method->Value; var result_of_this_method = System.Char.IsWhiteSpace(@c); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* IsUpper_13(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Char @c = (char) ptr_of_this_method->Value; var result_of_this_method = System.Char.IsUpper(@c); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* IsLower_14(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Char @c = (char) ptr_of_this_method->Value; var result_of_this_method = System.Char.IsLower(@c); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* ToUpper_17(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Globalization.CultureInfo @culture = (System.Globalization.CultureInfo) typeof(System.Globalization.CultureInfo).CheckCLRTypes( StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.Char @c = (char) ptr_of_this_method->Value; var result_of_this_method = System.Char.ToUpper(@c, @culture); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = (int) result_of_this_method; return __ret + 1; } static StackObject* ToUpper_18(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Char @c = (char) ptr_of_this_method->Value; var result_of_this_method = System.Char.ToUpper(@c); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = (int) result_of_this_method; return __ret + 1; } static StackObject* ToLower_20(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Globalization.CultureInfo @culture = (System.Globalization.CultureInfo) typeof(System.Globalization.CultureInfo).CheckCLRTypes( StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.Char @c = (char) ptr_of_this_method->Value; var result_of_this_method = System.Char.ToLower(@c, @culture); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = (int) result_of_this_method; return __ret + 1; } static StackObject* ToLower_21(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Char @c = (char) ptr_of_this_method->Value; var result_of_this_method = System.Char.ToLower(@c); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = (int) result_of_this_method; return __ret + 1; } } }