Example #1
0
        public static void main()
        {
            DisposeExample de = new DisposeExample();

            de.Dispose();
            try
            {
                de.DoSomething();
            }
            catch (ObjectDisposedException ode)
            {
                Console.WriteLine("Exception thrown: {0}", ode.Message);
            }
        }
Example #2
0
        static void Main(string[] args)
        {
            LinqExample.main();

            CollectionExample.main();

            DelegateExample.main();

            StringBuilderExample.main();

            DisposeExample.main();

            ReferencesExample.main();

            Customer.main();

            Console.WriteLine("All done");
        }