Skip to content

DustinCampbell/CSharpEssentials

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

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