Add an Equals func for LanguageString

This commit is contained in:
Tim Young 2018-03-16 13:59:14 -05:00
parent 5d366ea2cf
commit ee75c73e29

View File

@ -53,6 +53,14 @@ namespace EduNetworkBuilder
tag_type = tag;
}
public bool Equals(LanguageString compareWith)
{
if (text != compareWith.text) return false;
if (tag_type != compareWith.tag_type) return false;
if (language != compareWith.language) return false;
return true;
}
public void Save(XmlWriter writer)
{
writer.WriteElementString(language+"_" + tag_type, text);