Automatically remove "()" for object initiliazers

Here is a sample:

var assetClassBE = new AssetClassBE()
{
    Id = assetClass.ID, Name = assetClass.ClassName
};


The '()' after AssetClassBE is not automatically removed during a code cleanup and as far as I can tell I cannot configure this, or is this possible?

2 comments

It must be removed, if you've selected "full cleanup" profile


0

I have this example:

var distributors = new List<Distributor>() {new Distributor() {Name = "Lozano-Moran", Firstname = "Gabriel"}, new Distributor {Name = "Doe", Firstname = "Joe"}};

Only when I select the entire line will it remove the '()'. Shouldn't this normally work for the entire class file if no selection is made?

0

Please sign in to leave a comment.