/// <summary> /// Sets the string value for this atom, based on its current internal value and a given /// atom dictionary. /// </summary> /// <param name="dictionary">The dictionary used for translating the string value to the internal value representing this item.</param> public void SetTextValue(AtomDictionary dictionary) { m_textValue = dictionary.GetExternalRepresentation(m_internalValue); }
/// <summary> /// Initializes a new instance of the <see cref="Atom"/> class. /// </summary> /// <param name="textValue">The string value for this atom.</param> /// <param name="dictionary">The dictionary used for translating the string value to the internal value representing this item.</param> public Atom(string textValue, AtomDictionary dictionary) : base(dictionary.GetInternalRepresentation(textValue)) { m_textValue = textValue; }