You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In theory, all Il2Cpp Action and Func delegates in method signatures could be converted to their System counterparts. This would be emitted as a separate overload, rather than a direct substitution. It synergizes well with #148 and allows more system interfaces to be implemented, such as INotifyCompletion (which was the incentive for #133).
publicIl2CppSystem.ActionMethod(Il2CppSystem.ActionnormalParam,inIl2CppSystem.ActioninParam,outIl2CppSystem.ActionoutParam);publicSystem.ActionMethod(System.ActionnormalParam,inSystem.ActioninParam,outSystem.ActionoutParam){// Conversions are shown explicitly here for clarity, even though they're actually implicitvarnormalParamIl2Cpp=(Il2CppSystem.Action)normalParam;varinParamIl2Cpp=(Il2CppSystem.Action)inParam;Il2CppSystem.Actionresult=Method(normalParamIl2Cpp,ininParamIl2Cpp,outIl2CppSystem.ActionoutParamIl2Cpp);outParam=(System.Action)outParamIl2Cpp;return(System.Action)result;}
In theory, ref parameters could also be supported.
publicvoidMethod(refIl2CppSystem.Actionparam);publicvoidMethod(refSystem.Actionparam){// Conversions are shown explicitly here for clarity, even though they're actually implicitvarparamIl2Cpp=(Il2CppSystem.Action)param;Method(refparamIl2Cpp);param=(System.Action)paramIl2Cpp;}
Property accessors and conversion operators should be excluded. Converting event methods might enable #163 to become a reality.
In theory, all Il2Cpp
Action
andFunc
delegates in method signatures could be converted to their System counterparts. This would be emitted as a separate overload, rather than a direct substitution. It synergizes well with #148 and allows more system interfaces to be implemented, such asINotifyCompletion
(which was the incentive for #133).In theory,
ref
parameters could also be supported.Property accessors and conversion operators should be excluded. Converting event methods might enable #163 to become a reality.
Discussed briefly here: #133 (comment)
The text was updated successfully, but these errors were encountered: