mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 12:30:32 +00:00
There are issue however: 1. IL2CPU modifications are needed (see the PR for the list of the PR of IL2CPU to merge to make this usable) 2. Some fix in IL2CPU seems to give problems with Dictionary (VMT problem again?) 3. Hashtable with valuetype as key doesn't work (ContainsKey() always return false)
19 lines
737 B
C#
19 lines
737 B
C#
using Cosmos.Core_Plugs.System;
|
|
using IL2CPU.API.Attribs;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Reflection;
|
|
using System.Text;
|
|
|
|
namespace Cosmos.Core_Plugs
|
|
{
|
|
[Plug(Target = typeof(global::System.RuntimeFieldHandle))]
|
|
public static class RuntimeFieldHandleImpl
|
|
{
|
|
[PlugMethod(Signature = "System_Object__System_RuntimeFieldHandle_GetValue_System_Reflection_RtFieldInfo__System_Object__System_RuntimeType__System_RuntimeType___System_Boolean_")]
|
|
public static object GetValue(FieldInfo field, object instance, object fieldType, object declaringType, ref bool domainInitialized)
|
|
{
|
|
throw new NotImplementedException("RuntimeFieldHandle.GetValue()");
|
|
}
|
|
}
|
|
}
|