|
|
@@ -28,9 +28,9 @@ namespace ILRuntime.Runtime.Generated
|
|
|
args = new Type[]{typeof(System.Int32)};
|
|
|
method = type.GetMethod("get_Chars", flag, null, args, null);
|
|
|
app.RegisterCLRMethodRedirection(method, get_Chars_1);
|
|
|
- args = new Type[]{typeof(System.String), typeof(System.String), typeof(System.String)};
|
|
|
- method = type.GetMethod("Concat", flag, null, args, null);
|
|
|
- app.RegisterCLRMethodRedirection(method, Concat_2);
|
|
|
+ args = new Type[]{typeof(System.String), typeof(System.Object)};
|
|
|
+ method = type.GetMethod("Format", flag, null, args, null);
|
|
|
+ app.RegisterCLRMethodRedirection(method, Format_2);
|
|
|
args = new Type[]{typeof(System.String), typeof(System.String)};
|
|
|
method = type.GetMethod("Concat", flag, null, args, null);
|
|
|
app.RegisterCLRMethodRedirection(method, Concat_3);
|
|
|
@@ -40,21 +40,15 @@ namespace ILRuntime.Runtime.Generated
|
|
|
args = new Type[]{};
|
|
|
method = type.GetMethod("get_Length", flag, null, args, null);
|
|
|
app.RegisterCLRMethodRedirection(method, get_Length_5);
|
|
|
- args = new Type[]{typeof(System.String), typeof(System.Object)};
|
|
|
- method = type.GetMethod("Format", flag, null, args, null);
|
|
|
- app.RegisterCLRMethodRedirection(method, Format_6);
|
|
|
args = new Type[]{typeof(System.String[]), typeof(System.StringSplitOptions)};
|
|
|
method = type.GetMethod("Split", flag, null, args, null);
|
|
|
- app.RegisterCLRMethodRedirection(method, Split_7);
|
|
|
+ app.RegisterCLRMethodRedirection(method, Split_6);
|
|
|
args = new Type[]{};
|
|
|
method = type.GetMethod("Trim", flag, null, args, null);
|
|
|
- app.RegisterCLRMethodRedirection(method, Trim_8);
|
|
|
+ app.RegisterCLRMethodRedirection(method, Trim_7);
|
|
|
args = new Type[]{typeof(System.String), typeof(System.String)};
|
|
|
method = type.GetMethod("op_Equality", flag, null, args, null);
|
|
|
- app.RegisterCLRMethodRedirection(method, op_Equality_9);
|
|
|
- args = new Type[]{typeof(System.String), typeof(System.String), typeof(System.String), typeof(System.String)};
|
|
|
- method = type.GetMethod("Concat", flag, null, args, null);
|
|
|
- app.RegisterCLRMethodRedirection(method, Concat_10);
|
|
|
+ app.RegisterCLRMethodRedirection(method, op_Equality_8);
|
|
|
|
|
|
app.RegisterCLRCreateArrayInstance(type, s => new System.String[s]);
|
|
|
|
|
|
@@ -103,26 +97,22 @@ namespace ILRuntime.Runtime.Generated
|
|
|
return __ret + 1;
|
|
|
}
|
|
|
|
|
|
- static StackObject* Concat_2(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
+ static StackObject* Format_2(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
{
|
|
|
ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
|
|
|
StackObject* ptr_of_this_method;
|
|
|
- StackObject* __ret = ILIntepreter.Minus(__esp, 3);
|
|
|
+ StackObject* __ret = ILIntepreter.Minus(__esp, 2);
|
|
|
|
|
|
ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
|
|
|
- System.String @str2 = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
|
|
|
+ System.Object @arg0 = (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.String @str1 = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
|
|
|
- __intp.Free(ptr_of_this_method);
|
|
|
-
|
|
|
- ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
|
|
|
- System.String @str0 = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
|
|
|
+ System.String @format = (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.String.Concat(@str0, @str1, @str2);
|
|
|
+ var result_of_this_method = System.String.Format(@format, @arg0);
|
|
|
|
|
|
return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
|
|
|
}
|
|
|
@@ -188,27 +178,7 @@ namespace ILRuntime.Runtime.Generated
|
|
|
return __ret + 1;
|
|
|
}
|
|
|
|
|
|
- static StackObject* Format_6(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
- {
|
|
|
- ILRuntime.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 @arg0 = (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.String @format = (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.String.Format(@format, @arg0);
|
|
|
-
|
|
|
- return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
|
|
|
- }
|
|
|
-
|
|
|
- static StackObject* Split_7(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
+ static StackObject* Split_6(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
{
|
|
|
ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
|
|
|
StackObject* ptr_of_this_method;
|
|
|
@@ -231,7 +201,7 @@ namespace ILRuntime.Runtime.Generated
|
|
|
return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
|
|
|
}
|
|
|
|
|
|
- static StackObject* Trim_8(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
+ static StackObject* Trim_7(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
{
|
|
|
ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
|
|
|
StackObject* ptr_of_this_method;
|
|
|
@@ -246,7 +216,7 @@ namespace ILRuntime.Runtime.Generated
|
|
|
return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
|
|
|
}
|
|
|
|
|
|
- static StackObject* op_Equality_9(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
+ static StackObject* op_Equality_8(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
{
|
|
|
ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
|
|
|
StackObject* ptr_of_this_method;
|
|
|
@@ -268,34 +238,6 @@ namespace ILRuntime.Runtime.Generated
|
|
|
return __ret + 1;
|
|
|
}
|
|
|
|
|
|
- static StackObject* Concat_10(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
- {
|
|
|
- ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
|
|
|
- StackObject* ptr_of_this_method;
|
|
|
- StackObject* __ret = ILIntepreter.Minus(__esp, 4);
|
|
|
-
|
|
|
- ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
|
|
|
- System.String @str3 = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
|
|
|
- __intp.Free(ptr_of_this_method);
|
|
|
-
|
|
|
- ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
|
|
|
- System.String @str2 = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
|
|
|
- __intp.Free(ptr_of_this_method);
|
|
|
-
|
|
|
- ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
|
|
|
- System.String @str1 = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
|
|
|
- __intp.Free(ptr_of_this_method);
|
|
|
-
|
|
|
- ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
|
|
|
- System.String @str0 = (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.String.Concat(@str0, @str1, @str2, @str3);
|
|
|
-
|
|
|
- return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
|
|
|
- }
|
|
|
-
|
|
|
|
|
|
|
|
|
}
|