Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想确保一堆类都有这个具有相同名称的特定静态函数被调用。最好的方法是让每个类都实现我的接口。但是,唉,界面不做静态,有没有办法解决这个问题?
扩展方法呢?
http://msdn.microsoft.com/en-us/library/bb383977.aspx