I have two ref parameters for a generic method like this:
Now when I call this with int parametersCode:static T Min<T>(ref T a, ref T b) where T : IComparable<T> { return a.CompareTo(b) < 0 ? a : b ; }
will a and b get boxed or not?Code:int a = 0, b = 1; int c = Min(ref a, ref b);



LinkBack URL
About LinkBacks


