Skip to content

Commit 43fa8d4

Browse files
author
Kapil Borle
committed
Use expression-bodied members
1 parent 4fdd8b8 commit 43fa8d4

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Engine/Settings.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,12 @@ public class Settings
3535
private List<string> customRulePath;
3636
private Dictionary<string, Dictionary<string, object>> ruleArguments;
3737

38-
// todo use 'lambda' expression type getter
39-
public string FilePath { get { return filePath; } }
40-
public IEnumerable<string> IncludeRules { get { return includeRules; } }
41-
public IEnumerable<string> ExcludeRules { get { return excludeRules; } }
42-
public IEnumerable<string> Severities { get { return severities; } }
38+
public string FilePath => filePath;
39+
public IEnumerable<string> IncludeRules => includeRules;
40+
public IEnumerable<string> ExcludeRules => excludeRules;
41+
public IEnumerable<string> Severities => severities;
4342
public IEnumerable<string> CustomRulePath => customRulePath;
44-
public Dictionary<string, Dictionary<string, object>> RuleArguments { get { return ruleArguments; } }
43+
public Dictionary<string, Dictionary<string, object>> RuleArguments => ruleArguments;
4544

4645
/// <summary>
4746
/// Create a settings object from the input object.

0 commit comments

Comments
 (0)