Moved more to Map library
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
using System.Text;
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
@ -53,4 +54,18 @@ public class Person : Properties.IPerson
|
||||
return result;
|
||||
} // ...
|
||||
|
||||
public string GetFullName()
|
||||
{
|
||||
StringBuilder result = new();
|
||||
if (_Name?.First is not null && !string.IsNullOrEmpty(_Name.First.Value))
|
||||
_ = result.Append(_Name.First.Value);
|
||||
if (_Name?.Middle is not null && !string.IsNullOrEmpty(_Name.Middle.Value))
|
||||
_ = result.Append(' ').Append(_Name.Middle.Value);
|
||||
if (_Name?.Last is not null && !string.IsNullOrEmpty(_Name.Last.Value))
|
||||
_ = result.Append(' ').Append(_Name.Last.Value);
|
||||
if (_Name?.Alias is not null && !string.IsNullOrEmpty(_Name.Alias.Value))
|
||||
_ = result.Append(" (").Append(_Name.Alias.Value).Append(')');
|
||||
return result.ToString();
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user