There is an easy way for adding method to an existing class:
public void ExtendingObject(this Me self, ...) { ... }
(new Me()).ExtendingObject(...)
But is there a way to add extension on a class side (ie. as a static method) ?
public void ExtendingClass(??? Me self, ...) { ... }
Me.ExtendingClass(...)
I am thinking to using it to add behavior to an Enum
public enum ErrorCode { ... }
ErrorCode.BuildFrom(123)