ObjectExporter
ObjectExporter copied to clipboard
Add support for C# 6.0 Initializers
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")}
};