params Parameter with default parameter values [duplicate]
问题 This question already has answers here : C# 4.0, optional parameters and params do not work together (3 answers) Closed 7 years ago . I've seen the params parameter more times than I can say and always removed it without thinking about it's meaning. Now I've learned its purpose. What I just learned is that the params parameter must be the last in the parameter list. But this is what I learned about the parameters that have a default value specified. Example: MyMethod(string Name, int blah=0).