internal Enumerator(TDictionary dictionary, KeyValuePairProperty <TDictionary, TKey, TValue> property) { m_Dictionary = dictionary; m_Property = property; m_Previous = property.Key; m_Position = -1; Keys = s_Pool.Get(); Keys.AddRange(m_Dictionary.Keys); }
public Enumerator(TDictionary dictionary, KeyValuePairProperty property) { m_Dictionary = dictionary; m_Property = property; m_Previous = property.Key; m_Position = -1; m_Keys = s_Pool.Get(); m_Keys.AddRange(m_Dictionary.Keys); }
/// <inheritdoc/> bool IPropertyKeyable <TDictionary, object> .TryGetProperty(ref TDictionary container, object key, out IProperty <TDictionary> property) { if (container.ContainsKey((TKey)key)) { property = new KeyValuePairProperty <TDictionary, TKey, TValue> { Key = (TKey)key }; return(true); } property = default; return(false); }
public PropertyCollection(TDictionary dictionary, KeyValuePairProperty <TDictionary, TKey, TValue> property) { m_Dictionary = dictionary; m_Property = property; }
public Enumerable(TDictionary dictionary, KeyValuePairProperty property) { m_Dictionary = dictionary; m_Property = property; }