示例#1
0
        public PersonNonStatic Parse(string str)
        {
            var person = new PersonNonStatic();

            person.Name = str;
            return(person);
        }
示例#2
0
        static void Main2(string[] args)
        {
            // Note we have to create a new person
            var person = new PersonNonStatic();
            var p      = person.Parse("John");

            p.Introduce("Tyler");
        }