Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Casting errors should be caught during compiling, right?
Message
From
20/11/2004 19:20:37
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Casting errors should be caught during compiling, right?
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
00963257
Message ID:
00963257
Views:
37
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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Next
Reply
Map
View

Click here to load this message in the networking platform