src/GenFx.Components/Lists/ListEntityBase.cs
/// <summary>
/// Removes the value at the specified index within the list.
/// </summary>
/// <param name="index">Index position of the value to be removed.</param>
Removes the value at the specified index within the list.
Removes the value at the specified index within the list .
public void RemoveAt(int index)
        {
            if (index >= this.Length)
            {
                throw new ArgumentOutOfRangeException(nameof(index));
            }
            for (int i = index; i < this.Length - 1; i++)
            {
                this.SetValue(i, this.GetValue(i + 1));
            }
            this.Length--;
        }
public void RemoveAt ( int index ) { if ( index >= this . Length ) { throw new ArgumentOutOfRangeException ( nameof ( index ) ) ; } for ( int i = index ; i < this . Length - 1 ; i ++ ) { this . SetValue ( i , this . GetValue ( i + 1 ) ) ; } this . Length -- ; }
Removes the value at the specified index within the list.
Removes the value at the specified index within the list .
// Move all the items one position down and remove the last item by reducing the length
index
int
Index position of the value to be removed.
Index position of the value to be removed .