From ee75c73e29c6316eb74cbbc75c8521f984168d9d Mon Sep 17 00:00:00 2001 From: Tim Young Date: Fri, 16 Mar 2018 13:59:14 -0500 Subject: [PATCH] Add an Equals func for LanguageString --- EduNetworkBuilder/LanguageString.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/EduNetworkBuilder/LanguageString.cs b/EduNetworkBuilder/LanguageString.cs index 38f3645..7c615c8 100644 --- a/EduNetworkBuilder/LanguageString.cs +++ b/EduNetworkBuilder/LanguageString.cs @@ -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);