public string GetValue(DataExportProperty property)
        {
            if (_propertiesDictionary.ContainsKey(property))
            {
                return(_propertiesDictionary[property]);
            }

            return(null);
        }
 public void SetValue(DataExportProperty property, string value)
 {
     if (!_propertiesDictionary.ContainsKey(property))
     {
         _propertiesDictionary.Add(property, value);
     }
     else
     {
         _propertiesDictionary[property] = value;
     }
 }
示例#3
0
 /// <summary>
 /// Stores a new <paramref name="value"/> for the given <paramref name="property"/> (and saves to the database)
 /// </summary>
 /// <param name="property"></param>
 /// <param name="value"></param>
 public void SetValue(DataExportProperty property, string value)
 {
     SetValue(property.ToString(), value);
 }
示例#4
0
 /// <inheritdoc cref="GetValue(string)"/>
 public string GetValue(DataExportProperty property)
 {
     return(GetValue(property.ToString()));
 }