void Add(KeyValuePair<string, TValue> item) |
Adds an item to the WordDictionary in a form of KeyValuePair |
void Add(string key, TValue value) |
Adds an item to the WordDictionary in a form of Key and Value |
void Clear() |
Removes all words from WordDictionary |
bool Contains(KeyValuePair<string, TValue> item) |
Returns true if both word and value are found in dictionary.
word is normalized first and then searched in dictionary.
|
bool ContainsKey(string word) |
Returns true if word is in dictionary.
word is normalized first and then searched in dictionary.
|
void CopyTo(KeyValuePair<string, TValue>[] array, int arrayIndex) |
Copies whole dictionary into an array.
|
static WordDictionary Create(string fileName) |
Reads WordDictionary from a file.
If fileName has .xml extension, uses XML format, otherwise uses binary format.
|
char[] GetChars() |
Returns sorted array of ordinary chars used in dictionary.
It may be cosidered as an alphabet with the note that surrogates are not honored and are broken into ordinary chars.
|
IEnumerator<KeyValuePair<string, TValue>> GetEnumerator()
|
You can enumerate dictionary using foreach statement. |
XmlSchema GetSchema() |
Always returns null. |
void ReadXml(XmlReader reader)
|
Loads WordDictionary from XML stream. |
bool Remove(KeyValuePair<string, TValue> item) |
Returns true if KeyValuePair is removed from WordDictionary.
KeyValuePair.Key is normalized first and then the normalized form is searched.
|
bool Remove(string word) |
Returns true if word is found and removed from WordDictionary.
word is normalized first and then the normalized form is searched.
|
void Save(string fileName) |
Saves WordDictionary into a file.
If fileName has .xml extension, uses XML format, otherwise uses binary format.
|
bool TryGetValue(string key, out TValue value) |
Returns true if key is found, otherwise false.
key is normalized first and then the normalized form is searched.
|
void WriteXml(XmlWriter writer) |
Serializes WordDictionary into XML-Stream. |