Example #1
0
 public void ToStringTest()
 {
    var tag = new Tag("00020012");
    var asString = tag.ToString();
    var expected = string.Format("({0},{1}) : {2}", tag.Group, tag.Element, "ImplementationClassUID");
    Assert.AreEqual(expected, tag.ToString());
 }
Example #2
0
 public override string ToString()
 {
     return(string.Format("{0}, {1} {2}", Tag.ToString(), VR.ToString(), string.Format(" : {0} Items", Items.Count)));
 }
Example #3
0
 /// <summary>
 /// To string override to visualize tag and vr of element
 /// </summary>
 /// <returns></returns>
 public override string ToString()
 {
     return(string.Format("{0}, {1}, {2}", Tag.ToString(), VR.ToString(), string.Join(" | ", DData_.ToArray())));
 }