Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Silverlight 3.0 Question
Message
From
01/02/2010 03:52:25
 
 
To
29/01/2010 22:54:14
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01446590
Message ID:
01446858
Views:
37
>>>So, by doing the following code, (Confirm)sender, the (Confirm) is type casting the sender object to type Confirm? Is that what you are saying.
>
>It's really not so weird to a VFP person once you use it a few times, Cecil.
>
>Compare these two statements:
>Assume that the variable a has been defined as type decimal.
>VFP
>b = INT(a)
>
>C#
>int b = (int) a
>
>With VFP we put the () around the argument. With C#, we put the () around the function.
>It's still just a function and an argument, but a different convention that accomplishes the same result.
>.

I think you need to be careful using that analogy. In your example (both VFP and C#) you are actual making a type conversion.
In Cecil's case the cast is from a base class to a derived class so 'sender' must already be of type 'Confirm' (or a class derived from it). No conversion is taking place....
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform