Click here to Skip to main content
15,890,123 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Windows application and data store Pin
ryc1-Aug-03 9:15
ryc1-Aug-03 9:15 
GeneralRe: C# Windows application and data store Pin
StealthyMark1-Aug-03 0:04
StealthyMark1-Aug-03 0:04 
GeneralRe: C# Windows application and data store Pin
Nathan Blomquist1-Aug-03 2:12
Nathan Blomquist1-Aug-03 2:12 
GeneralRe: C# Windows application and data store Pin
Kannan Kalyanaraman1-Aug-03 3:26
Kannan Kalyanaraman1-Aug-03 3:26 
GeneralRe: C# Windows application and data store Pin
Nathan Blomquist1-Aug-03 5:51
Nathan Blomquist1-Aug-03 5:51 
GeneralRe: C# Windows application and data store Pin
ryc1-Aug-03 9:20
ryc1-Aug-03 9:20 
GeneralExplain this to me Pin
Ista31-Jul-03 17:33
Ista31-Jul-03 17:33 
GeneralRe: Explain this to me Pin
Nick Parker31-Jul-03 17:42
protectorNick Parker31-Jul-03 17:42 
Ista wrote:
What does the as keyword do here is it the same as type casting with the parentheses?

The basic idea is the "as" keyword does the same thing as casting except if the object can't be cast it won't throw an error, it will return null so you might want to do something like:

Customer singleCustomer = new Customer();
PropertyManager pm = this.BindingContext[singleCustomer] as PropertyManager;
if(pm != null)
  //... continue on with pm


-Nick Parker
GeneralRe: Explain this to me Pin
Ista31-Jul-03 17:44
Ista31-Jul-03 17:44 
GeneralRe: Explain this to me Pin
Nick Parker31-Jul-03 17:53
protectorNick Parker31-Jul-03 17:53 
GeneralRe: Explain this to me Pin
Rocky Moore31-Jul-03 17:48
Rocky Moore31-Jul-03 17:48 
GeneralRe: Explain this to me Pin
Nick Parker31-Jul-03 17:54
protectorNick Parker31-Jul-03 17:54 
GeneralRe: Explain this to me Pin
J. Dunlap31-Jul-03 17:57
J. Dunlap31-Jul-03 17:57 
GeneralRe: Explain this to me Pin
Nick Parker31-Jul-03 18:00
protectorNick Parker31-Jul-03 18:00 
GeneralRe: Explain this to me Pin
J. Dunlap31-Jul-03 18:04
J. Dunlap31-Jul-03 18:04 
GeneralRe: Explain this to me Pin
Ista31-Jul-03 18:17
Ista31-Jul-03 18:17 
GeneralRe: Explain this to me Pin
Nick Parker31-Jul-03 18:31
protectorNick Parker31-Jul-03 18:31 
GeneralRe: Explain this to me Pin
Ista1-Aug-03 4:28
Ista1-Aug-03 4:28 
GeneralRe: Explain this to me Pin
James T. Johnson1-Aug-03 0:00
James T. Johnson1-Aug-03 0:00 
GeneralRe: Explain this to me Pin
Ista1-Aug-03 4:37
Ista1-Aug-03 4:37 
GeneralRe: Explain this to me Pin
Nick Parker1-Aug-03 5:36
protectorNick Parker1-Aug-03 5:36 
GeneralRe: Explain this to me Pin
Ista1-Aug-03 5:51
Ista1-Aug-03 5:51 
GeneralRe: Explain this to me Pin
StealthyMark1-Aug-03 0:26
StealthyMark1-Aug-03 0:26 
GeneralRe: Explain this to me Pin
Arun Bhalla1-Aug-03 6:55
Arun Bhalla1-Aug-03 6:55 
GeneralRe: Explain this to me Pin
Ista1-Aug-03 7:06
Ista1-Aug-03 7:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.