src/Shared/EntityFramework/Core/Metadata/Edm/ItemCollection.cs
// <summary>
// Adds an item to the collection
// </summary>
// <param name="item"> The item to add to the list </param>
// <exception cref="System.ArgumentNullException">Thrown if item argument is null</exception>
// <exception cref="System.InvalidOperationException">Thrown if the item passed in or the collection itself instance is in ReadOnly state</exception>
// <exception cref="System.ArgumentException">Thrown if the item that is being added already belongs to another ItemCollection</exception>
// <exception cref="System.ArgumentException">Thrown if the ItemCollection already contains an item with the same identity</exception>
Adds an item to the collection
Adds an item to the collection
internal void AddInternal(GlobalItem item)
        {
            Debug.Assert(item.IsReadOnly, "The item is not readonly, it should be by the time it is added to the item collection");
            Debug.Assert(item.DataSpace == DataSpace);
            base.Source.Add(item);
        }
internal void AddInternal ( GlobalItem item ) { Debug . Assert ( item . IsReadOnly , " " ) ; Debug . Assert ( item . DataSpace == DataSpace ) ; base . Source . Add ( item ) ; }
Adds an item to the collection
Adds an item to the collection
Thrown if item argument is null
Thrown if item argument is null
Thrown if the item passed in or the collection itself instance is in ReadOnly state
Thrown if the item passed in or the collection itself instance is in ReadOnly state
Thrown if the item that is being added already belongs to another ItemCollection
Thrown if the item that is being added already belongs to another ItemCollection
Thrown if the ItemCollection already contains an item with the same identity
Thrown if the ItemCollection already contains an item with the same identity
item
GlobalItem
The item to add to the list
The item to add to the list