GetCommand() private méthode

private GetCommand ( string query, Array, values ) : SqlCommand,
query string
values Array,
Résultat SqlCommand,
Exemple #1
0
    static void Main(string[] args)
    {
        var rd = new RemoteDatabase();

        // Overloaded(1, rd.GetCommand); // this is a compile error, ambigous

        Overloaded(1, () => rd.GetCommand());         // this compiles and works

        Console.ReadLine();
    }