Add an Equals func for LanguageString
This commit is contained in:
parent
5d366ea2cf
commit
ee75c73e29
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user