Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameters and arrays
Message
From
05/08/2010 22:59:44
 
 
To
05/08/2010 21:58:27
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01475479
Message ID:
01475486
Views:
32
What do you mean by the method being a success? How do you handle errors. What you are doing is not how things should work in .NET. Spend some time looking at the design guidelines. http://msdn.microsoft.com/en-us/library/ms229042.aspx

>As for the first line, yes, this is exactly what I meant. As for the second part, I always rely on As Boolean for the method definition to return its success. Even if it can always be a success, assuming only one very little line, I always use that technique as I can make the method evolve and later on, maybe there could a situation that a false would be needed.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform