HelperVSCodePossibleExtension and
Person Title
This commit is contained in:
@ -9,6 +9,7 @@ public record AppSettings(string Company,
|
||||
string[] ExcludeSchemes,
|
||||
string PersonBirthdayFormat,
|
||||
char[] PersonCharacters,
|
||||
char[] PersonTitleFilters,
|
||||
string WorkingDirectoryName)
|
||||
{
|
||||
|
||||
|
@ -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;
|
||||
|
@ -8,6 +8,7 @@ public record Person(long Id,
|
||||
char? Sex,
|
||||
string? UId,
|
||||
Birth? Birth,
|
||||
string? Title,
|
||||
Death? Death,
|
||||
Change? Change,
|
||||
string[] Lines)
|
||||
|
Reference in New Issue
Block a user