using System; using System.Xml; internal class Program { private static void Main() { Bar(XmlWriter => XmlWriter.Flush()); Bar(XmlReader => XmlReader.Flush()); } private static void Bar(Action x) { Console.WriteLine("W"); } private static void Bar(Action x) { Console.WriteLine("R"); } }