Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Casting errors should be caught during compiling, right?
Message
De
20/11/2004 20:57:20
 
 
À
20/11/2004 19:20:37
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Divers
Thread ID:
00963257
Message ID:
00963272
Vues:
7
Cetin,

I haven't run the code sample ... which part of it is the part that you're questioning?

UPDATE: Now I *have* run the sample code. There are no errors when it's run. What problem did you have with it?

~~Bonnie

>Type safety and casting as I thought are closely coupled and if a type can't be casted to another type it should be caught during compilation. Or to put it another way could a method return some other type than what it's instructed to do?
>To reproduce what I mean try MSDN code sample under:
>System.Windows.Forms\Binding class
>Cetin
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform