Ejemplo n.º 1
0
        static void Main3(string[] args)
        {
            // Note that since we made person parse static we can pass in a param here istead of having to create a new instance of person
            var p = PersonStatic.Parse("John");

            p.Introduce("Tyler");
        }
Ejemplo n.º 2
0
        public static PersonStatic Parse(string str)
        {
            var person = new PersonStatic();

            person.Name = str;
            return(person);
        }