/// <summary> /// /// </summary> /// <returns></returns> public override string ToString() { if (Udr.Length > 0) { return(String.Format("{0} {1:X2}-{2:X2}", Udr.ToHexa(), Sw1, Sw2)); } return(String.Format("{0:X2}-{1:X2}", Sw1, Sw2)); }
/// <inheritdoc /> public void WriteXml(XmlWriter writer) { writer.WriteAttributeString("sw1", String.Format("{0:X2}", Sw1)); writer.WriteAttributeString("sw2", String.Format("{0:X2}", Sw2)); writer.WriteString(Udr.ToHexa()); }