Advertisement
Guest User

Untitled

a guest
Aug 15th, 2013
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement