src/GenFx.Components/Lists/ListEntityBase.cs
/// <summary>
/// Determines the index of a specified value in the list.
/// </summary>
/// <param name="value">The value to locate in the list.</param>
/// <returns>The index of the item if it exists; otherwise, returns -1.</returns>
Determines the index of a specified value in the list.
Determines the index of a specified value in the list .
public int IndexOf(object? value)
        {
            for (int i = 0; i < this.Length; i++)
            {
                if (Object.Equals(this.GetValue(i), value))
                {
                    return i;
                }
            }
            return -1;
        }
public int IndexOf ( object ? value ) { for ( int i = 0 ; i < this . Length ; i ++ ) { if ( Object . Equals ( this . GetValue ( i ) , value ) ) { return i ; } } return - 1 ; }
Determines the index of a specified value in the list.
Determines the index of a specified value in the list .
The index of the item if it exists; otherwise, returns -1.
The index of the item if it exists ; otherwise returns - 1 .
value
object?
The value to locate in the list.
The value to locate in the list .