Skip to content

C# Essentials is a collection of Roslyn diagnostic analyzers, code fixes and refactorings that make it easy to work with C# 6 language features.

License

Notifications You must be signed in to change notification settings

DustinCampbell/CSharpEssentials

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C# Essentials

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.

Supports Visual Studio 2015 (link)

Features

Use NameOf

Identifies 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-Property

Determines when the private set in an auto-property can be removed.

Use Expression-Bodied Member

Makes it clear when a member can be converted into an expression-bodied member.

Expand Expression-Bodied Member

Makes 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 String

This handy refactoring makes it a breeze to transform a String.Format call into an interpolated strings.

About

C# Essentials is a collection of Roslyn diagnostic analyzers, code fixes and refactorings that make it easy to work with C# 6 language features.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages