예제 #1
0
파일: Program.cs 프로젝트: emretiryaki/Blog
 static void Main(string[] args)
 {
     var weaponService = new WeaponService();
     IList<Weapon> data = weaponService.GetWeapons();
     List<Models.Weapon> weapons = data.Select(WeaponConverter.Convert).ToList();
     weapons.ForEach(val => Console.WriteLine($"Weapon type {val.GetType().FullName}"));
     Console.ReadKey();
 }
예제 #2
0
        static void Main(string[] args)
        {
            var                  weaponService = new WeaponService();
            IList <Weapon>       data          = weaponService.GetWeapons();
            List <Models.Weapon> weapons       = data.Select(WeaponConverter.Convert).ToList();

            weapons.ForEach(val => Console.WriteLine($"Weapon type {val.GetType().FullName}"));
            Console.ReadKey();
        }