Posted on: 11/3/2014 9:35:27 PM | Views : 336

is this preferable/more efficient:
string errorMsg = "Error sending Welcome email"; string pageName = HttpContext.Current.Request.Url; MyProcedure1(errorMsg, pageName); MyProcedure2(errorMsg, pageName);
than this:
MyProcedure1(HttpContext.Current.Request.Url, "Error sending Welcome email",); MyProcedure2(HttpContext.Current.Request.Url, "Error sending Welcome email");
Does the first example save an instantiation of a string and a function call? Or the compiler smart enough to figure it out?
Thanks.

Go to the complete details ...