IEngineDictionary.cs 394 B

123456789101112131415161718
  1. // ReSharper disable once CheckNamespace
  2. namespace Jint;
  3. /// <summary>
  4. /// Contract for custom dictionaries that Jint uses.
  5. /// </summary>
  6. internal interface IEngineDictionary<in TKey, TValue>
  7. {
  8. int Count { get; }
  9. ref TValue this[TKey name] { get; }
  10. public ref TValue GetValueRefOrNullRef(TKey key);
  11. public ref TValue GetValueRefOrAddDefault(TKey key, out bool exists);
  12. }