Пример #1
0
        static void Main(string[] args)
        {
            NamedValue name = new NamedValue() { Name = "Name", Value = "Jongho" };
            NamedValue height = new NamedValue() { Name = "Height", Value = "165cm"};
            NamedValue weight = new NamedValue() { Name = "Weight", Value = "60kg" };

            Console.WriteLine($"{name.Name, -6} : {name.Value}");
            Console.WriteLine($"{height.Name, -6} : {height.Value}");
            Console.WriteLine($"{weight.Name, -6} : {weight.Value}");
        }
Пример #2
0
        static void Main(string[] args)
        {
            NamedValue name = new NamedValue()
            {
                Name = "이름", Value = "Alice"
            };
            NamedValue height = new NamedValue()
            {
                Name = "키", Value = "160"
            };
            NamedValue weight = new NamedValue()
            {
                Name = "몸무게", Value = "50"
            };

            Console.WriteLine($"{name.Name} : {name.Value}");
            Console.WriteLine($"{height.Name} : {height.Value}");
            Console.WriteLine($"{weight.Name} : {weight.Value}");
        }
Пример #3
0
        static void Main(string[] args)
        {
            NamedValue name = new NamedValue()
            {
                Name = "이름", Value = "박상현"
            };

            NamedValue height = new NamedValue()
            {
                Name = "키", Value = "177Cm"
            };

            NamedValue weight = new NamedValue()
            {
                Name = "몸무게", Value = "90Kg"
            };

            Console.WriteLine("{0} : {1}", name.Name, name.Value);
            Console.WriteLine("{0} : {1}", height.Name, height.Value);
            Console.WriteLine("{0} : {1}", weight.Name, weight.Value);
        }
Пример #4
0
        static void Main(string[] args)
        {
            NamedValue name = new NamedValue()
            {
                Name = "이름", Value = "박상현"
            };

            NamedValue height = new NamedValue()
            {
                Name = "키", Value = "177Cm"
            };

            NamedValue weight = new NamedValue()
            {
                Name = "무게", Value = "90Kg"
            };

            Console.WriteLine($"{name.Name} : {name.Value}");
            Console.WriteLine($"{height.Name} : {height.Value}");
            Console.WriteLine($"{weight.Name} : {weight.Value}");
        }
Пример #5
0
        static void Main(string[] args)
        {
            NamedValue name = new NamedValue()
            {
                Name = "이름", value = "박상현"
            };

            NamedValue height = new NamedValue()
            {
                Name = "키", value = "180cm"
            };

            NamedValue weight = new NamedValue()
            {
                Name = "몸무게", value = "74kg"
            };

            Console.WriteLine($"{name.Name} : {name.value}");
            Console.WriteLine($"{height.Name} : {height.value}");
            Console.WriteLine($"{weight.Name} : {weight.value}");
        }
Пример #6
0
        static void Main(string[] args)
        {
            NamedValue name = new NamedValue()
            {
                Name  = "Name",
                Value = "pi"
            };

            NamedValue height = new NamedValue()
            {
                Name  = "Height",
                Value = "28cm"
            };

            NamedValue weight = new NamedValue()
            {
                Name  = "Weight",
                Value = "120g"
            };

            Console.WriteLine($"{name.Name} : {name.Value}");
            Console.WriteLine($"{height.Name} : {height.Value}");
            Console.WriteLine($"{weight.Name} : {weight.Value}");
        }