예제 #1
0
        static void Main(string[] args)
        {
            var basicExample = new BasicExtensionMethodExample();

            var structTypeExample = new StructTypeExample();

            var polymorphismExample = new PolymorphismExample();

            string result = string.Empty;

            // result = basicExample.BasicExtensionMethodUsageCase();

            // result = basicExample.LinqExample();

            // result = basicExample.StaticCase().

            // result = basicExample.SameNameCase();

            // result = structTypeExample.ChangeStructReferenceValue();

            // result = structTypeExample.UsingThisModifier();

            // result = structTypeExample.UsingRefModifier();

            // result = polymorphismExample.BasicExample();

            // result = polymorphismExample.PolyExample();

            // result = polymorphismExample.ConvertBToA();

            Console.WriteLine(result);
        }
예제 #2
0
파일: Program.cs 프로젝트: zuopx/CSharpTour
 static void Main(string[] args)
 {
     PolymorphismExample.Usage();
 }