Things I’d like to see in C#: Conditional interface implementation

code 20 September 2008 | 0 Comments

To explain this, imagine you are designing a type Wrapper<T>, which is just a simple wrapper around a type T. class Wrapper<T> { T value; public Wrapper(T theObject) { value = theObject; } // Some other methods… } Now, since this is a just a wrapper around some type T, we would like to implement [...]

Tagged in , , ,