This style change makes it so that the explicit type is no longer needed when the type is apparent. This leads to more concise code and cleans up the find all references results without sacrificing readability.
Some examples:
Before:
List<string> auxilLibs = new List<string>();
After
var auxilLibs = new List<string>();
Before
ICmpInitializable cInit = this as ICmpInitializable;
After
var cInit = this as ICmpInitializable;
However a case like this will still require a explicit type. Even though a method named CreateCmpInitializable would probably return a ICmpInitializable its not a given as method can be given a name that might not properly communicate its intent.
This style change makes it so that the explicit type is no longer needed when the type is apparent. This leads to more concise code and cleans up the find all references results without sacrificing readability.
Some examples: Before:
After
Before
After
However a case like this will still require a explicit type. Even though a method named
CreateCmpInitializable
would probably return aICmpInitializable
its not a given as method can be given a name that might not properly communicate its intent.NOTE: this PR only changes the style rules and does not change any code!