mirror of
https://github.com/SoDOff-Project/sodoff.git
synced 2025-10-11 08:18:49 -07:00

.net 8 deprecated BinaryFormatter serialization apart from that proper deep copies are ~10x faster
25 lines
594 B
C#
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;
|
|
}
|