Exemple #1
0
 // Token: 0x060044CA RID: 17610 RVA: 0x001383CD File Offset: 0x001365CD
 void ICollection <Uri> .Add(Uri item)
 {
     CustomDictionarySources.ValidateUri(item);
     if (!this._uriList.Contains(item))
     {
         this._uriList.Add(item);
     }
     if (this.Speller != null)
     {
         this.Speller.OnDictionaryUriAdded(item);
     }
 }
Exemple #2
0
 // Token: 0x060044C6 RID: 17606 RVA: 0x001382D8 File Offset: 0x001364D8
 void IList <Uri> .Insert(int index, Uri item)
 {
     if (this._uriList.Contains(item))
     {
         throw new ArgumentException(SR.Get("CustomDictionaryItemAlreadyExists"), "item");
     }
     CustomDictionarySources.ValidateUri(item);
     this._uriList.Insert(index, item);
     if (this.Speller != null)
     {
         this.Speller.OnDictionaryUriAdded(item);
     }
 }
Exemple #3
0
 // Token: 0x170010E2 RID: 4322
 Uri IList <Uri> .this[int index]
 {
     get
     {
         return(this._uriList[index]);
     }
     set
     {
         CustomDictionarySources.ValidateUri(value);
         Uri uri = this._uriList[index];
         if (this.Speller != null)
         {
             this.Speller.OnDictionaryUriRemoved(uri);
         }
         this._uriList[index] = value;
         if (this.Speller != null)
         {
             this.Speller.OnDictionaryUriAdded(value);
         }
     }
 }