Does .NET have an equivalent of **kwargs in Python?
问题 I haven't been able to find the answer to this question through the typical channels. In Python I could have the following function definition def do_the_needful(**kwargs): # Kwargs is now a dictionary # i.e. do_the_needful(spam=42, snake='like eggs', spanish='inquisition') # would produce {'spam': 42, 'snake': 'like eggs', 'spanish': 'inquisition' } I know .NET has the ParamArray , which produces a sequence of unnamed arguments, similar to the *args syntax in Python... Does .NET have an