整理代码

This commit is contained in:
GG Z
2025-04-24 20:56:10 +08:00
parent 4d798e5d99
commit 155cef46f8
532 changed files with 1018 additions and 854 deletions

View File

@@ -0,0 +1,26 @@
using System.Xml.Serialization;
namespace ShrlAlgo.RvKits.RvIndependent.MetroGauges.LandXMLData
{
[XmlType]
[Serializable]
public abstract class ObjectWithNameSideSegmentPart : ObjectWithNameSideSegment
{
public ObjectWithNameSideSegmentPart() { }
public ObjectWithNameSideSegmentPart(ObjectWithNameSideSegmentPart reference)
: base(reference)
{
Part = reference.Part;
}
[XmlIgnore]
public string NameSidePart => NameSide + (Part != 0 ? " p" + Part : string.Empty);
[XmlIgnore]
public string NameSideSegmentPart => NameSideSegment + (Part != 0 ? " p" + Part : string.Empty);
[XmlAttribute("p")]
public int Part { get; set; }
}
}