Throw Argument Out Of Range Exception : Buildin Exceptions : Development Class C# Source Code


Custom Search

C# Source Code » Development Class » Buildin Exceptions »

 

Throw Argument Out Of Range Exception








    


using System;
using System.Collections;

class Class1 {
   static void Main(string[] args) {
    try {
      // Display the first 200 chars from the connection string
      Console.WriteLine("asdf".Substring(1, 200));
    }
    catch (Exception objE) {
      Console.WriteLine(objE.ToString());
    }
   }
}

           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Development Class
» Buildin Exceptions