I have a c# method:
public void foo (DateTime toDate) { ... }
when I invoke that method, visual studio intellisense suggest an option of
foo (toDate : )
What does that syntax mean ? sending anonymous var ?
Thanks for any clarification
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Those are for named parameters. See also http://geekswithblogs.net/michelotti/archive/2009/01/22/c-4.0-named-parameters-for-better-code-quality.aspx
So you can pass the arguments by name in any order you like. This is new in the C# 4.0 compiler.