C# Essentials is a collection of Roslyn diagnostic analyzers, code fixes and refactorings that make it easy to work with C# 6 language features, such as nameof expressions, getter-only auto-properties, expression-bodied members, and string interpolation. FeaturesUse NameOfIdentifies calls where a parameter name is passed as a string to an argument named "paramName". This is a simple-yet-effective heuristic for detecting cases like the one below: Use Getter-Only Auto-PropertyDetermines when the private set in an auto-property can be removed. Use Expression-Bodied MemberMakes it clear when a member can be converted into an expression-bodied member. Expand Expression-Bodied MemberMakes it trivial to convert an expression-bodied member into a full member declaration with a body (and a get accessor declaration for properties and indexers). Convert to Interpolated StringThis handy refactoring makes it a breeze to transform a String.Format call into an interpolated strings. |