Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/DustinCampbell/CSharpEssentials
C# Essentials is a collection of Roslyn diagnostic analyzers, code fixes and refactorings that make it easy to work with C# 6 language features.
https://github.com/DustinCampbell/CSharpEssentials
Last synced: 26 days ago
JSON representation
C# Essentials is a collection of Roslyn diagnostic analyzers, code fixes and refactorings that make it easy to work with C# 6 language features.
- Host: GitHub
- URL: https://github.com/DustinCampbell/CSharpEssentials
- Owner: DustinCampbell
- License: other
- Created: 2015-01-15T06:18:12.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-07T15:03:34.000Z (over 8 years ago)
- Last Synced: 2024-11-16T02:04:54.478Z (27 days ago)
- Language: C#
- Homepage:
- Size: 899 KB
- Stars: 160
- Watchers: 18
- Forks: 26
- Open Issues: 20
-
Metadata Files:
- Readme: readme.md
- License: License.txt
Awesome Lists containing this project
- awesome-analyzers - CSharpEssentials - C# Essentials is a collection of Roslyn diagnostic analyzers, code fixes and refactorings that make it easy to work with C# 6 language features. (Deprecated Analyzers / Miscellaneous)
README
# 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](https://github.com/dotnet/roslyn/wiki/New-Language-Features-in-C%23-6#nameof-expressions),
[getter-only auto-properties](https://github.com/dotnet/roslyn/wiki/New-Language-Features-in-C%23-6#getter-only-auto-properties),
[expression-bodied members](https://github.com/dotnet/roslyn/wiki/New-Language-Features-in-C%23-6#expression-bodied-function-members),
and [string interpolation](https://github.com/dotnet/roslyn/wiki/New-Language-Features-in-C%23-6#string-interpolation).Supports Visual Studio 2015 ([link](https://visualstudiogallery.msdn.microsoft.com/a4445ad0-f97c-41f9-a148-eae225dcc8a5?SRC=Home))
## 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:![](http://i.imgur.com/JnNB8nZ.jpg)
### Use Getter-Only Auto-Property
Determines when the ```private set``` in an auto-property can be removed.
![](http://i.imgur.com/je8HpdD.jpg)
### Use Expression-Bodied Member
Makes it clear when a member can be converted into an expression-bodied
member.![](http://i.imgur.com/vF4PY9o.jpg)
### 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).![](http://i.imgur.com/WROjVdP.jpg)
### Convert to Interpolated String
This handy refactoring makes it a breeze to transform a ```String.Format```
call into an interpolated strings.![](http://i.imgur.com/Q1CMKD5.jpg)