public static void Set(StorageSettings storage, StorageSettings_Hysteresis value) { bool flag = mapping.ContainsKey(storage); if (flag) { mapping[storage] = value; } else { mapping.Add(storage, value); } }
public static StorageSettings_Hysteresis Get(StorageSettings storage) { bool flag = mapping.ContainsKey(storage); StorageSettings_Hysteresis result; if (flag) { result = mapping[storage]; } else { result = new StorageSettings_Hysteresis(); } return(result); }