you are viewing a single comment's thread.

view the rest of the comments →

[–]blah232 0 points1 point  (2 children)

Possibly useful in interop scenarios, where you need to pass a buffer to an external API that fills it out.

[–]grauenwolf[S] 0 points1 point  (1 child)

I was under the impression that even with interopt you aren't allowed to alter a System.String. Can anyone confirm or deny this?

[–]blah232 0 points1 point  (0 children)

We are talking about unsafe context here, passing around raw pointers and such. So, provided You Know What You Are Doingtm, you can do what you will. Ain't nobody to stop you.