Ejemplo n.º 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();
        }
Ejemplo n.º 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();
        }