Example #1
0
        public void Add(object key, object value)
        {
            if (ContainsKey(key))
            {
                throw new ArgumentException($"The key {key} already exists.");
            }

            var serializedKey   = SerializationContainer.From(key);
            var serializedValue = SerializationContainer.From(value);

            _keys.Add(serializedKey);
            _values.Add(serializedValue);
        }
Example #2
0
 private SerializationContainer Serialize(object value)
 {
     return(SerializationContainer.From(value));
 }