Example #1
0
        private static void LessonInstanceVsStatic()
        {
            //notes:    instance class.
            Person myPerson = new Person();

            //notes:    static because it doesn't use the 'new' operator. Already allocated to memory
            string stateName = StateHelper.GetStateName("IA");

            System.Console.WriteLine(stateName);
        }
 private void StaticExample()
 {
     lblDisplayMessage.Text = StateHelper.GetStateName("MN");
 }