-
Notifications
You must be signed in to change notification settings - Fork 656
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Ourpalm/master
merge source
- Loading branch information
Showing
16 changed files
with
542 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 89 additions & 0 deletions
89
ILRuntimeTest/AutoGenerate/System_Collections_Generic_List_1_Action_1_Int32_Binding.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Reflection; | ||
using System.Runtime.InteropServices; | ||
|
||
using ILRuntime.CLR.TypeSystem; | ||
using ILRuntime.CLR.Method; | ||
using ILRuntime.Runtime.Enviorment; | ||
using ILRuntime.Runtime.Intepreter; | ||
using ILRuntime.Runtime.Stack; | ||
using ILRuntime.Reflection; | ||
using ILRuntime.CLR.Utils; | ||
|
||
namespace ILRuntime.Runtime.Generated | ||
{ | ||
unsafe class System_Collections_Generic_List_1_Action_1_Int32_Binding | ||
{ | ||
public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app) | ||
{ | ||
BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly; | ||
MethodBase method; | ||
Type[] args; | ||
Type type = typeof(System.Collections.Generic.List<System.Action<System.Int32>>); | ||
args = new Type[]{typeof(System.Action<System.Int32>)}; | ||
method = type.GetMethod("Add", flag, null, args, null); | ||
app.RegisterCLRMethodRedirection(method, Add_0); | ||
args = new Type[]{typeof(System.Int32)}; | ||
method = type.GetMethod("get_Item", flag, null, args, null); | ||
app.RegisterCLRMethodRedirection(method, get_Item_1); | ||
|
||
args = new Type[]{}; | ||
method = type.GetConstructor(flag, null, args, null); | ||
app.RegisterCLRMethodRedirection(method, Ctor_0); | ||
|
||
} | ||
|
||
|
||
static StackObject* Add_0(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.Action<System.Int32> @item = (System.Action<System.Int32>)typeof(System.Action<System.Int32>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); | ||
__intp.Free(ptr_of_this_method); | ||
|
||
ptr_of_this_method = ILIntepreter.Minus(__esp, 2); | ||
System.Collections.Generic.List<System.Action<System.Int32>> instance_of_this_method = (System.Collections.Generic.List<System.Action<System.Int32>>)typeof(System.Collections.Generic.List<System.Action<System.Int32>>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); | ||
__intp.Free(ptr_of_this_method); | ||
|
||
instance_of_this_method.Add(@item); | ||
|
||
return __ret; | ||
} | ||
|
||
static StackObject* get_Item_1(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.Int32 @index = ptr_of_this_method->Value; | ||
|
||
ptr_of_this_method = ILIntepreter.Minus(__esp, 2); | ||
System.Collections.Generic.List<System.Action<System.Int32>> instance_of_this_method = (System.Collections.Generic.List<System.Action<System.Int32>>)typeof(System.Collections.Generic.List<System.Action<System.Int32>>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); | ||
__intp.Free(ptr_of_this_method); | ||
|
||
var result_of_this_method = instance_of_this_method[index]; | ||
|
||
return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); | ||
} | ||
|
||
|
||
static StackObject* Ctor_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj) | ||
{ | ||
ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; | ||
StackObject* __ret = ILIntepreter.Minus(__esp, 0); | ||
|
||
var result_of_this_method = new System.Collections.Generic.List<System.Action<System.Int32>>(); | ||
|
||
return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); | ||
} | ||
|
||
|
||
} | ||
} |
Oops, something went wrong.