using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using DTS.Common.Utilities; using DTS.Common.Utilities.DotNetProgrammingConstructs; namespace DTS.Serialization.Iso { // *** Iso.File.cs *** public partial class File { // *** Iso.File.Test.cs *** public partial class Test { /// /// /// ISO-style representation of a custom property. /// /// public class ExtraProperty : Exceptional { public ExtraProperty(string key, string value) { _Key.Value = key; _Value.Value = value; } /// /// Get/set the key of the property. /// public string Key { get { if (!_Key.IsValueInitialized) { return null; } return _Key.Value; } set => _Key.Value = value; } private readonly Property _Key = new Property( typeof(File).Namespace + ".Iso.File.Test.ExtraProperty.Key", null, false ); /// /// Get/set the Value of the property. /// public string Value { get { if (!_Value.IsValueInitialized) { return null; } return _Value.Value; } set => _Value.Value = value; } private readonly Property _Value = new Property( typeof(File).Namespace + ".Iso.File.Test.ExtraProperty.Value", null, false ); } } } }