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