C# Generic Method with Type Constraints or Base Class Parameter – stackoverflow.com

If I write a method accepting a parameter which derives from a BaseClass (or an interface), as far as I know there are two ways to achieve that: void MyMethod<T>(T obj) where T : BaseClass { ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "C# Generic Method with Type Constraints or Base Class Parameter – stackoverflow.com"