Mega Code Archive

 
Categories / C# / Development Class
 

Argument Null Exception

using System; class ArgumentNullTest {  public static void Main() {    String[] s = null;    String sep = " ";    try {      String j = String.Join(sep,s);    }    catch (ArgumentNullException e) {       Console.WriteLine("Error: {0}",e);    }  } }