简体   繁体   中英

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM