Skip to content

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

Notifications You must be signed in to change notification settings

powerumc/ElvisNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ElvisNet

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

Basic

  Expression<Func<int>> expression = () => Environment.CommandLine.Length;
  var expect = Elvis.SafeNull(expression);
  Func<int> func = () => Environment.CommandLine.Length;
  var expect = Elvis.SafeNull(func);

Extension Methods

  var person = new Person();
  // ...
  
  person.SafeNull();
  
  person.SafeNull(o => o.Name.First.ToString());

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages