Is there a C# equivalent to boost::interprocess::basic_string?

601 Views Asked by At

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#?

1

There are 1 best solutions below

0
On BEST ANSWER

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.