I\'m looking for a way to have a function such as:
myFunction({\"Key\", value}, {\"Key2\", value});
I\'m sure there\'s something with anonymous
Use a Dictionary ...
void Main() { var dic = new Dictionary(); dic.Add( "Key1", 1 ); dic.Add( "Key2", 2 ); MyFunction( dic ).Dump(); } public static object MyFunction( IDictionary dic ) { return dic["Key1"]; }