Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Datetimeconverter
Message
From
12/07/2008 11:14:28
 
 
To
11/07/2008 20:20:06
John Baird
Coatesville, Pennsylvania, United States
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01330393
Message ID:
01330831
Views:
24
This message has been marked as a message which has helped to the initial question of the thread.
>Just remember, as a general rule of thumb, almost everything is an object being returned from framework functions. If you're trying to stick it into a type other than object, you will probably need to cast it to the type you want.

That's probably a little too broad of a generalization John ... although I never took inventory or anything. <g>

Linda, as a better rule of thumb, use Intellisense to see what the method returns. If it returns an object, then you'll need to cast it.

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform