System.Windows.Data.DataList.VerifyValidItem C# (CSharp) Method

VerifyValidItem() private method

private VerifyValidItem ( object item ) : void
item object
return void
        private void VerifyValidItem(object item)
        {
            if (item == null) {
                throw new ArgumentNullException("item");
            }

            EnsureSnapShot();
            if (_snapShot.Contains(item) == false) {
                throw new ArgumentOutOfRangeException("The specified item is not part of this DataList.");
            }
        }