public static void main() { DisposeExample de = new DisposeExample(); de.Dispose(); try { de.DoSomething(); } catch (ObjectDisposedException ode) { Console.WriteLine("Exception thrown: {0}", ode.Message); } }
static void Main(string[] args) { LinqExample.main(); CollectionExample.main(); DelegateExample.main(); StringBuilderExample.main(); DisposeExample.main(); ReferencesExample.main(); Customer.main(); Console.WriteLine("All done"); }