Esempio n. 1
0
 /// <summary>
 /// Sets value.
 /// </summary>
 /// <param name="dictionary">The dictionary name.</param>
 /// <param name="key">The key.</param>
 /// <param name="value">The value.</param>
 public static void SetValue(string dictionary, string key, string value)
 {
     CustomDictionary.SetEntry(CustomDictionary.GetDictionaryId(dictionary), key, value);
 }
Esempio n. 2
0
 /// <summary>
 /// Gets all keys from a dictionary.
 /// </summary>
 /// <param name="id">The object ID.</param>
 /// <param name="dictionary">The dictionary name.</param>
 /// <returns>The keys.</returns>
 public static IEnumerable <string> GetEntryNames(ObjectId id, string dictionary)
 {
     return(CustomDictionary.GetEntryNames(CustomObjectDictionary.GetDictionaryId(id, dictionary)));
 }
Esempio n. 3
0
 /// <summary>
 /// Gets value.
 /// </summary>
 /// <param name="dictionary">The dictionary name.</param>
 /// <param name="key">The key.</param>
 /// <returns>The value.</returns>
 public static string GetValue(string dictionary, string key)
 {
     return(CustomDictionary.GetEntry(CustomDictionary.GetDictionaryId(dictionary), key));
 }
Esempio n. 4
0
 /// <summary>
 /// Sets value.
 /// </summary>
 /// <param name="id">The object ID.</param>
 /// <param name="dictionary">The dictionary name.</param>
 /// <param name="key">The key.</param>
 /// <param name="value">The value.</param>
 public static void SetValue(ObjectId id, string dictionary, string key, string value)
 {
     CustomDictionary.SetEntry(CustomObjectDictionary.GetDictionaryId(id, dictionary), key, value);
 }
Esempio n. 5
0
 /// <summary>
 /// Gets value.
 /// </summary>
 /// <param name="id">The object ID.</param>
 /// <param name="dictionary">The dictionary name.</param>
 /// <param name="key">The key.</param>
 /// <returns>The value.</returns>
 public static string GetValue(ObjectId id, string dictionary, string key)
 {
     return(CustomDictionary.GetEntry(CustomObjectDictionary.GetDictionaryId(id, dictionary), key));
 }
Esempio n. 6
0
 /// <summary>
 /// Gets all keys from a dictionary.
 /// </summary>
 /// <param name="dictionary">The dictionary name.</param>
 /// <returns>The keys.</returns>
 public static IEnumerable <string> GetEntryNames(string dictionary)
 {
     return(CustomDictionary.GetEntryNames(CustomDictionary.GetDictionaryId(dictionary)));
 }