Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 8th, 2012  |  syntax: None  |  size: 0.19 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Unsafe string creation from char[]
  2. string s = GetBuffer();
  3. fixed (char* pch = s) {
  4.     pch[0] = 'R';
  5.     pch[1] = 'e';
  6.     pch[2] = 's';
  7.     pch[3] = 'u';
  8.     pch[4] = 'l';
  9.     pch[5] = 't';
  10. }