SHARE
TWEET

Untitled

a guest Aug 15th, 2013 26 Never
  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
RAW Paste Data
Top