MyStringId myId = new MyStringId("myIdentifier");
string myIdentifier = myId.ToString();
if (myId == otherId) { // do something... }This code compares two MyStringId instances to see if they are equal. The MyStringId type is typically found in game development libraries such as Unity or Monogame, but can also be found in other libraries as well.