Esempio n. 1
0
 /// <summary>
 /// Adds an item to this collection.
 /// </summary>
 /// <param name="item">The <see cref="FolderAccessItem"/> to add to this collection.</param>
 public void Add(FolderAccessItem item)
 {
     if (!_Folders.Contains(item))
     {
         _Folders.Add(item);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Removes the first occurrence of a specific <see cref="FolderAccessItem"/> from this collection.
 /// </summary>
 /// <param name="item">The item to remove.</param>
 /// <returns><b>True</b> if item is removed from this collection; otherwise, <b>false</b>.</returns>
 public bool Remove(FolderAccessItem item) => _Folders.Remove(item);
Esempio n. 3
0
 /// <summary>
 /// Determines whether the <paramref name="item"/> is in this collection.
 /// </summary>
 /// <param name="item">The object to locate in this collection.</param>
 /// <returns><b>True</b> if item is found in this collection; otherwise, <b>false</b>.</returns>
 public bool Contains(FolderAccessItem item) => _Folders.Contains(item);