Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Silverlight 3.0 Question
Message
 
À
29/01/2010 20:14:54
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Database:
Visual FoxPro
Divers
Thread ID:
01446590
Message ID:
01446593
Vues:
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. Did I understand this right?

Man, as a long-time VFP developer, this seems so weird to me. It is one of the reasons I always walked away from C# in the past, because of stuff like this. I've got to get through this and feel more comfortable with C#, so rather than walk away, I'll read up on it and hope if I can stomach it, er, I mean, get used to it. :)

Thanks for the explanation, Tim,

Cecil

>Hi Cecil,

The object passed into the event is called sender and is an object type. In order to use the methods and properties on that specifically for a Confirm type it needs to be cast from type object to type Confirm. Putting that in parens in front is a cast to that type.
Tim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform