Mirror of Svelto.ECS because we're a fan of it
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
689B

  1. using Svelto.DataStructures;
  2. using System.Collections.Generic;
  3. namespace Svelto.ECS
  4. {
  5. /// <summary>
  6. /// This is just a place holder at the moment
  7. /// I always wanted to create my own Dictionary
  8. /// data structure as excercise, but never had the
  9. /// time to. At the moment I need the custom interface
  10. /// wrapped though.
  11. /// </summary>
  12. public interface ITypeSafeDictionary
  13. {
  14. }
  15. public class TypeSafeDictionary<TKey, TValue> : Dictionary<TKey, TValue>, ITypeSafeDictionary
  16. {
  17. internal static readonly ReadOnlyDictionary<TKey, TValue> Default = new ReadOnlyDictionary<TKey, TValue>(new TypeSafeDictionary<TKey, TValue>());
  18. }
  19. }