public KeyedDictionaryEntryCollection(KeyedDictionaryEntryCollection <TKey> kdec) : base()
 {
     foreach (DictionaryEntry de in kdec)
     {
         this.Add(de);
     }
 }
Beispiel #2
0
        public ObservableDictionary(IDictionary <TKey, TValue> dictionary)
        {
            _keyedEntryCollection = new KeyedDictionaryEntryCollection();

            foreach (KeyValuePair <TKey, TValue> entry in dictionary)
            {
                DoAddEntry((TKey)entry.Key, (TValue)entry.Value);
            }
        }
        public ObservableDictionary(IEnumerable <KeyValuePair <TKey, TValue> > dictionary, IEqualityComparer <TKey> comparer)
        {
            KeyedEntryCollection = new KeyedDictionaryEntryCollection <TKey>(comparer);

            foreach (var entry in dictionary)
            {
                DoAddEntry(entry.Key, entry.Value);
            }
        }
Beispiel #4
0
        public ObservableDictionary(IEnumerable <KeyValuePair <TKey, TValue> > dictionary)
        {
            KeyedEntryCollection = new KeyedDictionaryEntryCollection <TKey>();

            foreach (KeyValuePair <TKey, TValue> entry in dictionary)
            {
                DoAddEntry((TKey)entry.Key, (TValue)entry.Value);
            }
        }
Beispiel #5
0
        public ObservableDictionary(IDictionary <TKey, TValue> dictionary, IEqualityComparer <TKey> comparer)
        {
            _keyedEntryCollection = new KeyedDictionaryEntryCollection <TKey>(comparer);

            foreach (KeyValuePair <TKey, TValue> entry in dictionary)
            {
                DoAddEntry((TKey)entry.Key, (TValue)entry.Value);
            }
        }
Beispiel #6
0
        public ObservableDictionary(IDictionary <TKey, TValue> dictionary)
        {
            KeyedEntryCollection = new KeyedDictionaryEntryCollection <TKey>();

            foreach (var entry in dictionary)
            {
                DoAddEntry(entry.Key, entry.Value);
            }
        }
        public ObservableDictionary(IDictionary <TKey, TVal> dictionary)
        {
            this.keyedEntryCollection = new KeyedDictionaryEntryCollection <TKey>();

            foreach (KeyValuePair <TKey, TVal> entry in dictionary)
            {
                this.DoAddEntry((TKey)entry.Key, (TVal)entry.Value);
            }
        }
Beispiel #8
0
        /// <summary>
        /// Initializes a new, default, instance of Berico.LinkAnalysis.Model.Graph
        /// </summary>
        public GraphData(string _scope)
        {
            this.scope = _scope;

            // Initalize the primary storage dictionary for the graph
            nodeEdges = new KeyedDictionaryEntryCollection <INode>();

            // Initialize the orphan edge collection
            OrphanEdges = new Collection <IEdge>();
        }
Beispiel #9
0
        public ObservableDictionary(IDictionary <TKey, TValue> dictionary, IEqualityComparer <TKey> comparer)
        {
            dictionary.ThrowIfNull(nameof(dictionary));

            KeyedEntryCollection = new KeyedDictionaryEntryCollection(comparer);

            foreach (var entry in dictionary)
            {
                DoAddEntry(entry.Key, entry.Value);
            }
        }
Beispiel #10
0
 public void OnDeserialization(object sender)
 {
     if (_siInfo != null)
     {
         _keyedEntryCollection   = new KeyedDictionaryEntryCollection();
         _dictionaryCacheVersion = -1;
         Collection <DictionaryEntry> entries = (Collection <DictionaryEntry>)
                                                _siInfo.GetValue("entries", typeof(Collection <DictionaryEntry>));
         foreach (DictionaryEntry entry in entries)
         {
             AddEntry((TKey)entry.Key, (TValue)entry.Value);
         }
     }
 }
Beispiel #11
0
 /// <summary>
 /// Initializes a new instance of the Berico.LinkAnalysis.Model.AttributeCollection with
 /// default values.
 /// </summary>
 public AttributeCollection()
 {
     attributes = new KeyedDictionaryEntryCollection <string>();
 }
Beispiel #12
0
 public ObservableDictionary(IEqualityComparer <TKey> comparer)
 {
     _keyedEntryCollection = new KeyedDictionaryEntryCollection <TKey>(comparer);
 }
Beispiel #13
0
 public ObservableDictionary()
     : base()
 {
     Dictionary = new KeyedDictionaryEntryCollection <TKey>();
 }
Beispiel #14
0
 public ObservableDictionary()
 {
     _keyedEntryCollection = new KeyedDictionaryEntryCollection <TKey>();
 }
Beispiel #15
0
 public DictionaryEx()
 {
     _keyedEntryCollection = new KeyedDictionaryEntryCollection <TKey>();
 }
Beispiel #16
0
 public DictionaryEx(IEqualityComparer <TKey> comparer)
 {
     _keyedEntryCollection = new KeyedDictionaryEntryCollection <TKey>(comparer);
 }
Beispiel #17
0
 public ObservableDictionary()
 {
     KeyedEntryCollection = new KeyedDictionaryEntryCollection();
 }
Beispiel #18
0
 protected DictionaryEx(SerializationInfo info, StreamingContext context)
 {
     _keyedEntryCollection = new KeyedDictionaryEntryCollection <TKey>();
     _siInfo = info;
 }