Class Attributes
- Namespace
- NOpenNLP.Tools.Dictionary.Serializer
- Assembly
- NOpenNLP.Tools.dll
The Attributes class stores name value pairs.
Problem: The HashMap for storing the name value pairs has a very high memory footprint, replace it.
public class Attributes : IEnumerable<string>, IEnumerable
- Inheritance
-
Attributes
- Implements
- Inherited Members
Methods
GetEnumerator()
Iterates over the keys.
public virtual IEnumerator<string> GetEnumerator()
Returns
GetValue(string)
Retrieves the value for the given key or null if attribute it not set.
public virtual string? GetValue(string key)
Parameters
keystring
Returns
- string
the value
SetValue(string, string)
Sets a key/value pair.
public virtual void SetValue(string key, string value)