sodoff/src/Schema/ItemDataCategory.cs
Spirtix cf931e4f3a mission deep copy
.net 8 deprecated BinaryFormatter serialization
apart from that proper deep copies are ~10x faster
2025-06-26 21:41:50 +02:00

25 lines
594 B
C#

using System.Xml.Serialization;
namespace sodoff.Schema;
[XmlRoot(ElementName = "IC", Namespace = "")]
[Serializable]
public class ItemDataCategory {
public ItemDataCategory() {}
public ItemDataCategory(ItemDataCategory other) {
CategoryId = other.CategoryId;
CategoryName = other.CategoryName;
IconName = other.IconName;
}
[XmlElement(ElementName = "cid")]
public int CategoryId;
[XmlElement(ElementName = "cn")]
public string CategoryName;
[XmlElement(ElementName = "i", IsNullable = true)]
public string IconName;
}