/// <summary> /// Determines the index of a specific item in the <see cref="T:System.Collections.Generic.IList`1"/>. /// </summary> /// <returns> /// The index of <paramref name="item"/> if found in the list; otherwise, -1. /// </returns> /// <param name="item">The object to locate in the <see cref="T:System.Collections.Generic.IList`1"/>.</param> int IList <IMachineMappedSetting> .IndexOf(IMachineMappedSetting item) { var element = item as MachineMappedSettingElement; if (null != element) { return(BaseIndexOf(element)); } throw new InvalidOperationException(string.Format("The item must be an instance of the {0} type.", typeof(MachineMappedSettingElement).FullName)); }
/// <summary> /// Adds an item to the <see cref="T:System.Collections.Generic.ICollection`1"/>. /// </summary> /// <param name="item">The object to add to the <see cref="T:System.Collections.Generic.ICollection`1"/>.</param><exception cref="T:System.NotSupportedException">The <see cref="T:System.Collections.Generic.ICollection`1"/> is read-only.</exception> void ICollection <IMachineMappedSetting> .Add(IMachineMappedSetting item) { var element = item as MachineMappedSettingElement; if (null != element) { BaseAdd(element); } else { throw new InvalidOperationException(string.Format("The item must be an instance of the {0} type.", typeof(MachineMappedSettingElement).FullName)); } }
/// <summary> /// Inserts an item to the <see cref="T:System.Collections.Generic.IList`1"/> at the specified index. /// </summary> /// <param name="index">The zero-based index at which <paramref name="item"/> should be inserted.</param><param name="item">The object to insert into the <see cref="T:System.Collections.Generic.IList`1"/>.</param><exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index"/> is not a valid index in the <see cref="T:System.Collections.Generic.IList`1"/>.</exception><exception cref="T:System.NotSupportedException">The <see cref="T:System.Collections.Generic.IList`1"/> is read-only.</exception> void IList <IMachineMappedSetting> .Insert(int index, IMachineMappedSetting item) { // This member is intentionally not implemented. throw new NotImplementedException(); }
/// <summary> /// Removes the first occurrence of a specific object from the <see cref="T:System.Collections.Generic.ICollection`1"/>. /// </summary> /// <returns> /// true if <paramref name="item"/> was successfully removed from the <see cref="T:System.Collections.Generic.ICollection`1"/>; otherwise, false. This method also returns false if <paramref name="item"/> is not found in the original <see cref="T:System.Collections.Generic.ICollection`1"/>. /// </returns> /// <param name="item">The object to remove from the <see cref="T:System.Collections.Generic.ICollection`1"/>.</param><exception cref="T:System.NotSupportedException">The <see cref="T:System.Collections.Generic.ICollection`1"/> is read-only.</exception> bool ICollection <IMachineMappedSetting> .Remove(IMachineMappedSetting item) { // This member is intentionally not implemented. throw new NotImplementedException(); }