to a value type. (The exception to
PART I
C h a p t e r 1 8 :
G e n e r i c s
519
PART IPART I
assignment would not have been valid and the compile would have failed. This is one case
in which the difference between value types and reference types might be important to a
generic routine.
The value type constraint is the complement of the reference type constraint. It simply
ensures that any type argument is a value type, including a
Do'stlaringiz bilan baham: