Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Constants (such as 1 or 0) -> Int16 ?
Message
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Constants (such as 1 or 0) -> Int16 ?
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01599064
Message ID:
01599064
Vues:
59
Hi everybody,

Quite often when I need to compare, say, two values where one is a constant, I need to put (Int16) in front of that constant to avoid a compile error. I am wondering is there a way to somehow automatically make 0 to be Int16 without explicitly boxing it?

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform