Esempio n. 1
0
        public void SpyOnOwnCharacter()
        {
            ProtoMessage ignore = null;

            // (need to move the character to the same location as the playercharacter)
            MyFamily.MoveTo(MyPlayerCharacter.location.id, out ignore);
            this.SpyCharacterTest(client, MyPlayerCharacter.charID, MyFamily.charID, true);
        }
Esempio n. 2
0
        public IActionResult Index()
        {
            MyFamily austin = new MyFamily()
            {
                Wife = "Katherine",
                Dog  = "Remi",
                Mom  = "Jessica",
                Dad  = "Steven"
            };

            return(View(austin));
        }
Esempio n. 3
0
        static void Main(string[] args)
        {
            int[] array = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };

            foreach (var item in GetCollection(array))
            {
                Console.Write(item + ", ");
            }

            Console.WriteLine("\n");
            Console.WriteLine(new string('-', 50));


            Calendar calendar = new Calendar();

            foreach (var item in calendar)
            {
                Console.WriteLine(item);
            }

            Console.WriteLine(new string('-', 10));
            Console.WriteLine(calendar.GetDaysByMonth(5));

            Console.WriteLine(new string('-', 10));
            Console.WriteLine(calendar.GetMonthByDays(30));


            Console.WriteLine("\n");
            Console.WriteLine(new string('-', 50));


            var listInts = new List <string> {
                "Ivan", "Petya", "Vasiliy", "Andrey"
            };
            var linkList = MyFamily <string> .CreateList(listInts);

            foreach (var item in linkList.LinkListIterator())
            {
                Console.Write("{0}, ", item);
            }



            Console.WriteLine("\n");
            Console.WriteLine(new string('-', 50));


            Dictionary dictionary = new Dictionary();

            Console.WriteLine(dictionary["ручка"]);
            Console.WriteLine(dictionary["стiл"]);
            Console.WriteLine(dictionary["карандаш"]);
            Console.WriteLine(dictionary["яблyко"]);

            Console.WriteLine(new string('-', 20));

            for (int i = 0; i < dictionary.Count; i++)
            {
                Console.WriteLine(dictionary[i]);
            }

            Console.ReadKey();
        }