An open API service indexing awesome lists of open source software.

https://github.com/powerumc/elvisnet

Use Elvis Expression is C# 6.0 spec under C# 6.0
https://github.com/powerumc/elvisnet

Last synced: 3 months ago
JSON representation

Use Elvis Expression is C# 6.0 spec under C# 6.0

Awesome Lists containing this project

README

        

# ElvisNet
Use Elvis Expression is C# 6.0 spec under C# 6.0

## Basic

```C#
Expression> expression = () => Environment.CommandLine.Length;
var expect = Elvis.SafeNull(expression);
```

```C#
Func func = () => Environment.CommandLine.Length;
var expect = Elvis.SafeNull(func);
```
## Extension Methods

```C#
var person = new Person();
// ...

person.SafeNull();

person.SafeNull(o => o.Name.First.ToString());
```