Exemplo n.º 1
0
 private void RemoveRegistryItem_Mode0(DatafixerRegistryEntry item)
 {
     if (RawRegistry.Contains(item))
     {
         RawRegistry.Remove(item);
     }
     else if (SortedRegistry[item.DatafixerTarget].Contains(item.ToSortedDatafixerRegistryEntry()))
     {
         SortedRegistry[item.DatafixerTarget].Remove(item.ToSortedDatafixerRegistryEntry());
     }
     else
     {
         throw new DatafixerNotFoundException("Attempted to remove a datafixer from the registry that was not registered", item);
     }
 }
Exemplo n.º 2
0
 private void RemoveRegistryItem_Mode1(DatafixerRegistryEntry item)
 {
     RawRegistry.Remove(item);
     SortedRegistry[item.DatafixerTarget].Remove(item.ToSortedDatafixerRegistryEntry());
 }