Hi Guyz,
Thanks for the feedback. I find named parameters (hey, I don't choose the
lingo) to be a useful way to document code.
For example, calling
ticket = new FormsAuthenticationTicket
(
version = 1,
name = txtUserName.Text,
issueDate = DateTime.Now,
expiration = DateTime.Now.AddMinutes(30),
isPersistant = false,
userData = "Users",
cookiePath = FormsAuthentication.FormsCookiePath
);
says a lot more to anyone reading the code than
ticket = new FormsAuthenticationTicket
(
1,
txtUserName.Text,
DateTime.Now,
DateTime.Now.AddMinutes(30),
false,
"Users",
FormsAuthentication.FormsCookiePath
);
I have this sinking feeling I'm gonna have to learn Visual Basic now ...
And
just before Christmas too