I read the book "Framework Design Guides", a book on developing frameworks in .NET, with excerpts from the framework designers about the decisions they made regarding each section (for example, designing parameters, handling exceptions, etc.).
One piece of advice when designing parameters is to check the parameters as high on the stack as possible. This is due to the fact that the work here is not as expensive as low at the stop cash desk, so the performance penalty is not so expensive when checking high in the stop lot.
Does this mean that when I pass parameters to a method or constructor, I check them before doing anything else, or do it just before using the parameters (Thus, there may be 100 lines of code between the parameter in the definition and the use of the parameter )?
thanks
source share