Fork me on GitHub
TypeName ConvertToExpressionBodiedMemberAnalyzer
Check Id CC0038
Category Style
Severity Hidden

Cause

Usage of an expression-bodied members improve readability of the code.

Example

public override string ToString()
{
	return this.Name;
}

Code fix

A code fix will be presented to you that will transform the code, it will convert the method or property into an expression-bodied function.

public override string ToString() => this.Name;

Code fix

Related rules

TBD

See also

TBD