How To pass Optional Arguments
问题 I have one function having two fixed arguments. But next arguments are not fixed, there can be two or three or four of them. It's a runtime arguments so how can I define that function? My code looks like: public ObservableCollection<ERCErrors> ErrorCollectionWithValue (string ErrorDode, int MulCopyNo, dynamic arguments comming it should be 2 or 3) { return null; } 回答1: 1) params (C# Reference) public ObservableCollection<ERCErrors>ErrorCollectionWithValue (string ErrorDode, int MulCopyNo,