Exemplo n.º 1
0
 // Although we use other names, this is still the same method signature: when both methods are visible in the using scope
 //  then the compiler does not know whih one to use.
 public static void ExtensionMethodWithValueTupleParameter(this ClassToExtend extended, (int intOnArg2, string stringOnArg2) arg2)
Exemplo n.º 2
0
 // Same method signature: when both methods are visible in the using scope then the compiler
 //  does not know whih one to use.
 public static void ExtensionMethodWithIntParameter(this ClassToExtend extended, int arg2)
 {
     Console.WriteLine($"ExtensionMethodWithIntParameter1: {arg2}");
 }