ObjectExporter icon indicating copy to clipboard operation
ObjectExporter copied to clipboard

Add support for C# 6.0 Initializers

Open OmarElabd opened this issue 9 years ago • 0 comments

This will need to be an option in the settings page to enable/disable. It's probably a good idea to enable it in VS 2015 by default and disable (by default) in earlier versions.

C# 6.0 Dictionary Initializer:

Dictionary<string, Customer> cList = new Dictionary<string, Customer>()
{
  ["A123"] = new Customer("A123"),
  ["B246"] = new Customer("B246")
};

Pre 6.0:

Dictionary<string, Customer> cList = new Dictionary<string, Customer>()
{
  {"A123", new Customer("A123")},
  {"B246", new Customer("B246")}
};

OmarElabd avatar Jul 02 '15 20:07 OmarElabd