templating icon indicating copy to clipboard operation
templating copied to clipboard

what the policy on var?

Open SimonCropp opened this issue 1 year ago • 1 comments

currently there are

places where type is apparent where var is not use

List<IOperationConfig> operationConfigReaders = new List<IOperationConfig>(componentManager.OfType<IOperationConfig>());

places where type is apparent where var is used

var process = new Process()

places where type is not apparent where var is used

var installer = installerFactory.CreateInstaller(settings, packagesFolder);

which also produce a warning image

places where target typed new is used instead of var

TokenTrie trie = new();

So what is the preference?

SimonCropp avatar Jun 17 '24 23:06 SimonCropp