/// <summary> /// Throws an NotSupportedException stating that this collection cannot be modified. /// </summary> private void MethodModifiesCollection() { throw new NotSupportedException(string.Format(Strings.CannotModifyCollection, CollectionUtil.SimpleClassName(this.GetType()))); }