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
The following example prints a 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());
}