Пример #1
0
        public static fivePet[] getDogs()
        {
            fivePet[] dogs = new fivePet[]
            {
                new fivePet {
                    intAge = 4, strName = "Dog Name"
                },
                new fivePet {
                    intAge = 5, strName = "Two Dog Name"
                },
                new fivePet {
                    intAge = 5, strName = "Number three Dog Name"
                }
            };

            return(dogs);
        }
Пример #2
0
        public static fivePet[] getCats()
        {
            fivePet[] Cats = new fivePet[]
            {
                new fivePet {
                    intAge = 4, strName = "Cat Name"
                },
                new fivePet {
                    intAge = 5, strName = "Two Cat Name"
                },
                new fivePet {
                    intAge = 5, strName = "Number three Cat Name"
                }
            };

            return(Cats);
        }