Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP inlist() in c#
Message
 
 
À
25/01/2013 13:15:20
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01320903
Message ID:
01564086
Vues:
42
>>If I try
>>
>>Int16 closeDrawers = 2;
>>
>>if (closeDrawers.InList(2,4))
>>
>>
>>
>>I get an error about Short don't have InList implemented. I bypassed it by using Int32 instead but just wondering what was wrong in the above.
>
>Remind us how you are currently implementing InList() ....
 public static bool InList<T>(this T s, params T[] list)
        {
            return list.Contains(s);
        }
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform