-
Notifications
You must be signed in to change notification settings - Fork 0
/
WordDefinitions.cs
executable file
·42 lines (36 loc) · 1.03 KB
/
WordDefinitions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Strider.Client.TextMiner.Client
{
public class WordDefinitions
{
private string word;
private List<string> definitionList;
public string Word
{
get { return word; }
set { word = value; }
}
public List<string> definitions
{
get { return definitionList; }
set { definitionList = value; }
}
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.AppendLine("Requested word: " + Word);
if (definitionList != null && definitionList.Count > 0)
{
sb.Append("Synonyms: ");
foreach (string definition in definitionList)
{
sb.Append(" " + definition + "\n");
}
}
return sb.ToString();
}
}
}