Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ cat foo.cs
- public class MainC {
- public static void Main() {
- string st = "foo";
- unsafe { fixed (char *s = st) { *s = 'g'; } }
- System.Console.WriteLine(st);
- }
- }
- $ gmcs /unsafe foo.cs
- $ mono --security=verifiable foo.exe
- goo
- $
Add Comment
Please, Sign In to add comment