When looking at some code reflected from WCF libraries, I see a pattern used to create exceptions:
if(argument == null) { throw Error.ArgumentNull("argument"); }
Zero arguments are the simplest example, and other types of exceptions are available through the static error class.
What is the meaning of this factory pattern? Why not use the new operator and just call the ArgumentNullException constructor?
Paul turner
source share