C#: How do I call a static method of a base class from a static method of a derived class?
问题 In C#, I have base class Product and derived class Widget. Product contains a static method MyMethod(). I want to call static method Product.MyMethod() from static method Widget.MyMethod(). I can't use the base keyword, because that only works with instance methods. I can call Product.MyMethod() explicitly, but if I later change Widget to derive from another class, I have to revise the method. Is there some syntax in C# similar to base that allows me to call a static method from a base class