Method ToString
ToString()
String representation of the Tag class.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | string value of tag |
Overrides
System.Object.ToString()
Examples
Example prints tag string
Tag tag1 = new Tag("Alpha");
Tag tag2 = new Tag("Beta");
if (tag1.Equals(tag2))
{
Console.WriteLine("{0} and {1} are same", tag1.ToString(), tag2.ToString());
}