Ejemplo n.º 1
0
 internal KeyCollection(ICollection <TKey> collection, IReadOnlyIndicator readOnlyIndicator)
 {
     if (collection == null)
     {
         throw Fx.Exception.ArgumentNull("collection");
     }
     m_collection        = collection;
     m_readOnlyIndicator = readOnlyIndicator;
 }
Ejemplo n.º 2
0
 internal ReadOnlyDictionary45(IDictionary <TKey, TValue> dictionary, IReadOnlyIndicator readOnlyIndicator)
 {
     if (dictionary == null)
     {
         throw new ArgumentNullException("dictionary");
     }
     Contract.EndContractBlock();
     m_dictionary        = dictionary;
     m_readOnlyIndicator = readOnlyIndicator;
 }
            internal ValueCollection(ICollection <TValue> collection, IReadOnlyIndicator readOnlyIndicator)
            {
                if (collection == null)
                {
                    throw Fx.Exception.ArgumentNull(nameof(collection));
                }

                m_collection        = collection;
                m_readOnlyIndicator = readOnlyIndicator;
            }
 internal ValueCollection(ICollection <TValue> collection, IReadOnlyIndicator readOnlyIndicator)
 {
     _collection        = collection ?? throw Fx.Exception.ArgumentNull(nameof(collection));
     _readOnlyIndicator = readOnlyIndicator;
 }
 internal ReadOnlyDictionary45(IDictionary <TKey, TValue> dictionary, IReadOnlyIndicator readOnlyIndicator)
 {
     Dictionary = dictionary ?? throw new ArgumentNullException(nameof(dictionary));
     Contract.EndContractBlock();
     _readOnlyIndicator = readOnlyIndicator;
 }
Ejemplo n.º 6
0
 internal KeyCollection(ICollection <TKey> collection, IReadOnlyIndicator readOnlyIndicator)
 {
     m_collection        = collection ?? throw Fx.Exception.ArgumentNull(nameof(collection));
     m_readOnlyIndicator = readOnlyIndicator;
 }