예제 #1
0
 // Token: 0x06000BE5 RID: 3045 RVA: 0x0002E82C File Offset: 0x0002CA2C
 private bool GetOrCreateMultiValue(out global::MultiValue <TValue> v)
 {
     if (this.dict == null)
     {
         throw new InvalidOperationException("The KeyPair is invalid");
     }
     return(this.dict.GetOrCreateMultiValue(this.key, out v));
 }
예제 #2
0
 // Token: 0x06000BE4 RID: 3044 RVA: 0x0002E7FC File Offset: 0x0002C9FC
 private bool GetMultiValue(out global::MultiValue <TValue> v)
 {
     if (this.dict == null)
     {
         v = null;
     }
     return(this.dict.GetMultiValue(this.key, out v));
 }
 // Token: 0x06000C1E RID: 3102 RVA: 0x0002F144 File Offset: 0x0002D344
 internal bool GetOrCreateMultiValue(TKey key, out global::MultiValue <TValue> v, IEnumerable <TValue> enumerable)
 {
     if (this.dict.TryGetValue(key, out v))
     {
         return(true);
     }
     v = this.CreateMultiValue(enumerable);
     return(false);
 }
예제 #4
0
 // Token: 0x06000BD4 RID: 3028 RVA: 0x0002E4EC File Offset: 0x0002C6EC
 public void Set(global::MultiValue <TValue> other)
 {
     if (other == this)
     {
         return;
     }
     this.Clear();
     foreach (TValue item in other)
     {
         this.Add(item);
     }
 }
예제 #5
0
 // Token: 0x06000BD6 RID: 3030 RVA: 0x0002E5A4 File Offset: 0x0002C7A4
 public bool Clone(IEqualityComparer <TValue> valueComparer, out global::MultiValue <TValue> val)
 {
     if (this.count == 0)
     {
         val = null;
         return(false);
     }
     if (valueComparer == this.hashSet.Comparer)
     {
         val = this.Clone();
         return(true);
     }
     val = new global::MultiValue <TValue>(this.list, valueComparer);
     if (val.count == 0)
     {
         val = null;
         return(false);
     }
     return(true);
 }
 // Token: 0x06000C1A RID: 3098 RVA: 0x0002F0D4 File Offset: 0x0002D2D4
 internal bool GetMultiValue(TKey key, out global::MultiValue <TValue> v)
 {
     return(this.dict.TryGetValue(key, out v));
 }
 // Token: 0x06000C2F RID: 3119 RVA: 0x0002F508 File Offset: 0x0002D708
 internal void SetMultiValue(TKey key, global::MultiValue <TValue> mv)
 {
     this.dict.Add(key, mv);
 }
예제 #8
0
 // Token: 0x06000BE6 RID: 3046 RVA: 0x0002E864 File Offset: 0x0002CA64
 private void Bind(global::MultiValue <TValue> v)
 {
     this.dict.SetMultiValue(this.key, v);
 }
예제 #9
0
 // Token: 0x06000BB9 RID: 3001 RVA: 0x0002DEA4 File Offset: 0x0002C0A4
 private MultiValue(IEqualityComparer <TValue> comparer, global::MultiValue <TValue> mv)
 {
     this.list    = new List <TValue>(mv.list);
     this.hashSet = new HashSet <TValue>(mv.hashSet, comparer);
     this.count   = mv.count;
 }