Argument Null Exception : Buildin Exceptions : Development Class C# Source Code


Custom Search

C# Source Code » Development Class » Buildin Exceptions »

 

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);
   }
 }
}

           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Development Class
» Buildin Exceptions