Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Handling DB Nulls
Message
 
 
À
29/12/2009 12:06:01
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Divers
Thread ID:
01440804
Message ID:
01441070
Vues:
21
>>>>I think there is some contradiction I still don't understand. From the link:
>>>>
>>>>where T: struct
>>>> The type argument must be a value type. Any value type except Nullable can be specified. See Using Nullable Types (C# Programming Guide) for more information.
>>>
>>>probably means we cannot write
>>>
>>>where T?: struct
>>>
>>>
>>>
>>>>and then we're using nullable value type for the parameter. Why does it work?
>>>
>>>
>>>We still pass T - except it is nullable
>>
>>Why for inlist we need to use IEquatable(T) and not IComparable ?
>
>With Inlist - we only need to compare for equality. We do not need less than, greater than, ... - do we ?
>
>Did you look up IComparable and IEquatable ?
>
>[The best way to get an answer to your question is to leave it unanswered ]

Not yet - still going through my e-mails right now.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform