Re:Strings and the CLR – A Special Relationship
by matthewwarren on Thursday June 02, 2016 @07:13AM
(#11821618)
Good question, I don't know how much (if at all) it can be extended.
Those [MethodImplAttribute(MethodImplOptions.InternalCall)] calls are still within the CoreCLR codebase, they're just from the managed part -> un-managed part.
Can one extend the CLR (modulalary) and access via: extern and [MethodImplAttribute(MethodImplOptions.InternalCall)]?
Native UTF-8 is an obvious example but the scope could be far greater in scope such as native interop for a hardware device (IoT), funky filesystems or hypervisors?