Dean
Dean
CC#
Created by Dean on 1/7/2023 in #help
❔ Is a generic with a where clause equivalent to passing the same type through as a parameter
Is there any difference between the following 2 methods? public void DoSomething<T>(T value) where T : class, IComparable { int result = value.CompareTo(10); Console.WriteLine(result); } public void DoSomething(IComparable value) { int result = value.CompareTo(10); Console.WriteLine(result); }
23 replies
CC#
Created by Dean on 12/18/2022 in #help
❔ Copying video on Delegates, why doesn't my version work?
48 replies