Type Parameter Unification
Posted
by Bent Rasmussen
on Stack Overflow
See other posts from Stack Overflow
or by Bent Rasmussen
Published on 2010-03-11T21:21:47Z
Indexed on
2010/03/11
21:24 UTC
Read the original article
Hit count: 298
Why is this disallowed in C#?
Actually I'd like to be able to write
alias Y<A, B> : X<A, B>, X<B, A>
The unification is actually desired here; if the A = B then just one method should be defined.
© Stack Overflow or respective owner