In C++, using boost::interprocess you can define a boost::interprocess::basic_string which is basically an abstraction over a string that's stored in a Memory Mapped File. You can seamlessly use it like any other string in your application (assuming of course you take care of thread safety).
Is there any equivalent library/nuget package/piece of code for C#?
No. However, even if it were possible to implement transparently, strings in C# are immutable. Therefore I don't think having a library quite like that would be even very useful.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With