示例#1
0
        static void Main(string[] args)
        {
            IExample example = new ExampleImplementation();

            example.Value = 41;
            Console.WriteLine($"Value: {example.Value}");
            Console.WriteLine($"GetResult: {example.GetResult()}");
            Console.WriteLine($"indexer: {example["whatever"]}");
            Console.ReadKey();
        }
示例#2
0
        static void Main(string[] args)
        {
            IExample example = new ExampleImplementation();

            example.Value = 41;
            Console.WriteLine($"Value: {example.Value}");
            Console.WriteLine($"GetResult: {example.GetResult()}");
            Console.WriteLine($"indexer: {example["whatever"]}");
            Console.ReadKey();
        }