25 lines
579 B
C#
25 lines
579 B
C#
using System.Text.Json;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace View_by_Distance.Shared.Models;
|
|
|
|
public class PersonId : Properties.IPersonId
|
|
{
|
|
|
|
protected readonly long _Value; // {{1}}SingletonValue
|
|
|
|
public long Value => _Value; // {{1}}SingletonValue
|
|
|
|
[JsonConstructor]
|
|
public PersonId
|
|
(
|
|
long value
|
|
) => _Value = value; // {{1}}SingletonValue
|
|
|
|
public override string ToString()
|
|
{
|
|
string result = JsonSerializer.Serialize(this, new JsonSerializerOptions() { WriteIndented = true });
|
|
return result;
|
|
} // ...
|
|
|
|
} |