Example #1
0
        public static NamesExample GetSampleInstance()
        {
            PersonInfo info1 = new PersonInfo() { FirstName = "Li" };
            PersonInfo info2 = new PersonInfo() { FirstName = "Hu", LastName = "Hu" };
            NamesExample w = new NamesExample()
            {
                FirstName = "Li",
                Persons = new PersonInfo[] { info1, info2 }
            };

            return w;
        }
Example #2
0
        public static NamesExample GetSampleInstance()
        {
            PersonInfo info1 = new PersonInfo()
            {
                FirstName = "Li"
            };
            PersonInfo info2 = new PersonInfo()
            {
                FirstName = "Hu", LastName = "Hu"
            };
            NamesExample w = new NamesExample()
            {
                FirstName = "Li",
                Persons   = new PersonInfo[] { info1, info2 }
            };

            return(w);
        }