コード例 #1
0
 public Term(string InStr)
 {
     meaning  = new Meaning(InStr);
     synonym  = new Synonym(InStr);
     antonym  = new Antonym(InStr);
     examples = new Examples(InStr);
 }
コード例 #2
0
 public Term()
 {
     meaning  = new Meaning();
     synonym  = new Synonym();
     antonym  = new Antonym();
     examples = new Examples();
 }
コード例 #3
0
 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);
         }
     }
 }