Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use expression-bodied members #2361

Merged
merged 1 commit into from
Oct 16, 2017
Merged

Use expression-bodied members #2361

merged 1 commit into from
Oct 16, 2017

Conversation

c0shea
Copy link
Contributor

@c0shea c0shea commented Oct 15, 2017

Replace code braces in properties with expression-bodied members in C# 6.

For example, this:

public static bool IsTraceEnabled
{
    get { return LogLevel.Trace >= LogLevel; }
}

becomes this:
public static bool IsTraceEnabled => LogLevel.Trace >= LogLevel;

@codecov
Copy link

codecov bot commented Oct 16, 2017

Codecov Report

Merging #2361 into master will decrease coverage by <1%.
The diff coverage is 65%.

@@           Coverage Diff           @@
##           master   #2361    +/-   ##
=======================================
- Coverage      82%     82%   -<1%     
=======================================
  Files         318     318            
  Lines       22791   22768    -23     
  Branches     2783    2783            
=======================================
- Hits        18690   18657    -33     
- Misses       3399    3408     +9     
- Partials      702     703     +1

@304NotModified
Copy link
Member

thanks again!

@304NotModified 304NotModified added this to the 4.5 beta 8 milestone Oct 16, 2017
@304NotModified 304NotModified merged commit c8589dd into NLog:master Oct 16, 2017
@snakefoot snakefoot modified the milestones: 4.5 beta 8, 5.2.4, 4.5 Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants