2

I would like to ensure that a bunch of classes all have this particular static function with the same name to be called on. The best way to do so is to have every class implement my interface. But alas, interface don't do static, is there anyway to get around this?

Bill Software Engineer
  • 7,362
  • 23
  • 91
  • 174

1 Answers1

1

What about extension methods?

http://msdn.microsoft.com/en-us/library/bb383977.aspx

Matías Fidemraizer
  • 63,804
  • 18
  • 124
  • 206