Exemple #1
0
        /// <summary>
        /// Removes the object at the specified index of the RelatedObjectList.
        /// </summary>
        /// <param name="index">The zero-based index of the element to remove.</param>
        public void RemoveAt(int index)
        {
            if (IsReadOnly)
            {
                throw new InvalidOperationException("Cannot remove from a read-only list.");
            }

            ProjectionList.RemoveAt(index);
            Owner.IsDirty = true;
        }