Files
DP44/Common/DTS.Common.Serialization/TestSetup/ExtraProperty.cs
2026-04-17 14:55:32 -04:00

50 lines
1.5 KiB
C#

using DTS.Common.Utilities;
using DTS.Common.Utilities.DotNetProgrammingConstructs;
namespace DTS.Serialization
{
public partial class TestSetup : Exceptional
{
public partial class ExtraProperty : Exceptional
{
public ExtraProperty()
{
_key.Value = null;
_value.Value = null;
_version.Value = "1.0.0.0";
}
public ExtraProperty(string key, string value)
: this()
{
_key.Value = key;
_value.Value = value;
}
public string Key
{
get => _key.Value;
set => _key.Value = value;
}
private readonly Property<string> _key
= new Property<string>(typeof(Graph).Namespace + ".ExtraProperty.Key", "", false);
public string Value
{
get => _value.Value;
set => _value.Value = value;
}
private readonly Property<string> _value
= new Property<string>(typeof(Graph).Namespace + ".ExtraProperty.Value", "", false);
public string Version
{
get => _version.Value;
set => _version.Value = value;
}
private readonly Property<string> _version
= new Property<string>(typeof(Graph).Namespace + ".ExtraProperty.Version", "", false);
}
}
}