Exemple #1
0
 /// <summary>
 /// Determines whether the collection contains a specific ServiceSettings value.
 /// </summary>
 /// <param name="value">The ServiceSettings to locate in the collection.</param>
 /// <returns>true if the ServiceSettings is found in the collection; otherwise, false.</returns>
 public bool Contains(ServiceSettings value)
 {
     return(List.Contains(value));
 }
Exemple #2
0
 /// <summary>
 /// Removes the first occurrence of a specific ServiceSettings from the collection.
 /// </summary>
 /// <param name="value">The ServiceSettings to remove from the collection.</param>
 public void Remove(ServiceSettings value)
 {
     _serviceDictionary.Remove(value.Id);
     List.Remove(value);
 }
Exemple #3
0
 /// <summary>
 /// Determines the index of a specific item in the collection.
 /// </summary>
 /// <param name="value">The ServiceSettings to locate in the collection.</param>
 /// <returns>The index of value if found in the collection; otherwise, -1.</returns>
 public int IndexOf(ServiceSettings value)
 {
     return(List.IndexOf(value));
 }
Exemple #4
0
 /// <summary>
 /// Inserts a ServiceSettings item to the collection at the specified index.
 /// </summary>
 /// <param name="index">The zero-based index at which value should be inserted.</param>
 /// <param name="value">The ServiceSettings to insert into the collection.</param>
 public void Insert(int index, ServiceSettings value)
 {
     _serviceDictionary[value.Id] = value;
     List.Insert(index, value);
 }
Exemple #5
0
 /// <summary>
 /// Adds a ServiceSettings to the collection.
 /// </summary>
 /// <param name="value">The ServiceSettings to add to the collection.</param>
 /// <returns>The position into which the new element was inserted.</returns>
 public int Add(ServiceSettings value)
 {
     _serviceDictionary[value.Id] = value;
     return(List.Add(value));
 }