User-250275175 posted
Hello, i have been reading a book (pro c# 2008 and . net 3.5 platform, Andrew Troelsen) and some site about c# development. In all this places they talk about the .Net way to handle exception and why we should use the .Net architecture to handle exception.
Usually they talk about how the old way of declaring constants representing the type of error and returning that in functions is wrong and should not be used.
My problem is that checking the System.Web.Security.Membership class they implement some functions that return by reference using out parameters a MembershipCreateStatus (a enum) that represent the state of the executed function.
Now, isn't this a wrong approach? should not this class only implement exception handling and forget about enums for function states, or i am missing something here?
Thanks for your help!