整理代码
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user