All pastes #743924 Raw Edit

RickyWh

public text v1 · immutable
·published 2007-10-20 22:20 UTC
rendered paste body
using System;
using System.Windows.Forms;

namespace Starting
{
    class CGetStarted
    {
        public static void Main()
        {
            CGetStarted c = new CGetStarted();
            Console.WriteLine("Let's Get Started!");

            // Equality: compares two Object references to see if they point to the same object
            Console.WriteLine("Equality: " + c.Equals(c));

            // GetHashCode: a code for determining object uniqueness
            Console.WriteLine("Object Hash: " + c.GetHashCode());


            // GetType: Obtain the Object's type at Run-time
            Console.WriteLine("Object Method: " + c.GetType().GetMethods()[1]);

            // ToString: Convert a type to a string; in this case a class.
            Console.WriteLine("Object Dump: " + c.ToString());

            MessageBox.Show("hello!");
        }
    }

    class CAnotherClass
    {
        public void MethodName()
        {
            // Code		
        }

    }
}