init
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user