HelperVSCodePossibleExtension and

Person Title
This commit is contained in:
2023-08-20 19:44:43 -07:00
parent 3c273da5f1
commit df729431d8
11 changed files with 2746 additions and 1032 deletions

View File

@ -13,6 +13,7 @@ public class AppSettings
public string[]? ExcludeSchemes { get; set; }
public string? PersonBirthdayFormat { get; set; }
public string? PersonCharacters { get; set; }
public string? PersonTitleFilters { get; set; }
public string? WorkingDirectoryName { get; set; }
public override string ToString()
@ -36,6 +37,8 @@ public class AppSettings
throw new NullReferenceException(nameof(appSettings.PersonBirthdayFormat));
if (appSettings?.PersonCharacters is null)
throw new NullReferenceException(nameof(appSettings.PersonCharacters));
if (appSettings?.PersonTitleFilters is null)
throw new NullReferenceException(nameof(appSettings.PersonTitleFilters));
if (appSettings?.WorkingDirectoryName is null)
throw new NullReferenceException(nameof(appSettings.WorkingDirectoryName));
result = new(
@ -45,6 +48,7 @@ public class AppSettings
appSettings.ExcludeSchemes,
appSettings.PersonBirthdayFormat,
appSettings.PersonCharacters.ToArray(),
appSettings.PersonTitleFilters.ToArray(),
appSettings.WorkingDirectoryName
);
return result;