C# 7.0 syntax sugars

This commit is contained in:
Bruno Logerfo
2017-03-14 08:20:29 -03:00
parent 6c8a123b68
commit f8b2fcda7a
14 changed files with 62 additions and 150 deletions

View File

@@ -31,11 +31,7 @@ namespace ConfigGenerator {
internal readonly ASFConfig ASFConfig;
internal ConfigPage(ASFConfig config) {
if (config == null) {
throw new ArgumentNullException(nameof(config));
}
ASFConfig = config;
ASFConfig = config ?? throw new ArgumentNullException(nameof(config));
RefreshText();