Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'UVtools.Core/Objects/ValueDescription.cs')
-rw-r--r--UVtools.Core/Objects/ValueDescription.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/UVtools.Core/Objects/ValueDescription.cs b/UVtools.Core/Objects/ValueDescription.cs
index b584cc9..d79ebcd 100644
--- a/UVtools.Core/Objects/ValueDescription.cs
+++ b/UVtools.Core/Objects/ValueDescription.cs
@@ -7,6 +7,8 @@
*/
using System;
+using System.Text.Json.Serialization;
+using System.Xml.Serialization;
namespace UVtools.Core.Objects;
@@ -27,11 +29,17 @@ public class ValueDescription : BindableBase, IEquatable<ValueDescription>
set => RaiseAndSetIfChanged(ref _description, value);
}
+ [XmlIgnore]
+ [JsonIgnore]
public string ValueAsString
{
get => Value?.ToString() ?? string.Empty;
set => Value = value;
- }
+ }
+
+ public ValueDescription()
+ {
+ }
public ValueDescription(object value, string? description = null)
{