最近のC#、文字列にイミュータブルを感じない。合法的にいじれる雰囲気。いやまあshoganaiし、MemoryMarshal.GetReferenceした時点で非合法行きかもしれませんが、この操作の範囲Unsafeって文字出てこないじゃないですか!?
2
7
43
7K
7
Download Image
@neuecc There have been discussions for an analyzer or a separate rule to require unsafe toggle on the project to use MemoryMarshal. The problem with MemoryMarshal is that some of its methods are "safe" and some are, well, hopefully the user knows what they're doing!