If I manage the C # managed string in place (for example, canceled its characters) using pointers in a block or unsafe method, can this unsafe implementation confuse or ruin .NET pool pooling mechanisms?
The proposed managed string is created in managed code and passed to an unsafe method that needs to be manipulated.
An example of this scenario:
static void Main(string[] args) { string s = "this is a test"; UnsafeReverse(s); Console.WriteLine(s);
source share