Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 15th, 2013  |  syntax: None  |  size: 0.39 KB  |  views: 23  |  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. string foo = new string(new char[] { 'b', 'a', 'r' });
  2.        
  3. new string(new char[] { 'b', 'a', 'r' });
  4.        
  5. 'new string(new char[] { 'b', 'a', 'r' })' threw an exception of type 'System.ArgumentException'
  6.     base {System.SystemException}: {"Only NewString function evaluation can create a new string."}
  7.     Message: "Only NewString function evaluation can create a new string."
  8.     ParamName: null