コード例 #1
0
    static void Main(string[] args)
    {
        var listOfModel2 = new Model1();

        //You can call it from "object"
        listOfModel2.MyExtensionMethod();
        //Or directly as it is declared
        ObjectExtensions.MyExtensionMethod(listOfModel2);
    }