view-by-distance-mklink-con.../Shared/Models/PersonAddressZipCode.cs
2022-05-08 12:28:50 -07:00

25 lines
621 B
C#

using System.Text.Json;
using System.Text.Json.Serialization;
namespace View_by_Distance.Shared.Models;
public class PersonAddressZipCode : Properties.IPersonAddressZipCode
{
protected readonly string _Value; // {{1}}SingletonValue
public string Value => _Value; // {{1}}SingletonValue
[JsonConstructor]
public PersonAddressZipCode
(
string value
) => _Value = value; // {{1}}SingletonValue
public override string ToString()
{
string result = JsonSerializer.Serialize(this, new JsonSerializerOptions() { WriteIndented = true });
return result;
} // ...
}