public Term(string InStr) { meaning = new Meaning(InStr); synonym = new Synonym(InStr); antonym = new Antonym(InStr); examples = new Examples(InStr); }
public Term() { meaning = new Meaning(); synonym = new Synonym(); antonym = new Antonym(); examples = new Examples(); }
public Term(XElement XE) { if (XE != null) { type = XE.Attribute(stype).Value; meaning = new Meaning(XE.Element(Meaning.sMeaning)); synonym = new Synonym(XE.Element(Synonym.sSynonym)); antonym = new Antonym(XE.Element(Antonym.sAntonym)); examples = new Examples(); foreach (XElement xe in XE.Elements(Examples.sExample)) { examples.Add(xe.Value); } } }