Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Datetimeconverter
Message
 
À
13/07/2008 04:31:51
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01330393
Message ID:
01330967
Vues:
21
Cetin,

I think it's also thinking in FoxPro (a hard habit to break, esp. since I still do some). I figured since I was passing it the variable to convert into, I didn't need to tell it again the name of the variable to be assigned. It still feels verbose to me but it's getting better.

>>Cetin,
>>
>>I tried your suggestion and that worked like a charm. Thanks for your help. I keep hoping that one day I will get the hang of when to use a cast but it looks like I still have a long way to go.
>>
>
>Hi Linda,
>I think in your case the problem was not in casting. You declared the variables but left them unassigned.
>Framework would warn you at compile time when there isn't an implicit cast and require you to add the explicit casting.
>PS: I check return types in intellisense to decide if I should cast. When I miss compiler reminds:)
>Cetin
Linda Harmes
HiBit Technologies, Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform