GroupCollection.IList<Group>.IndexOf(Group) Method

Definition

Determines the index of a specific group in the group collection.

C#
int IList<Group>.IndexOf(System.Text.RegularExpressions.Group item);

Parameters

item
Group

The group to locate in the group collection.

Returns

The index of the item if found; otherwise, -1.

Implements

Remarks

This member is an explicit interface member implementation. It can be used only when the GroupCollection instance is cast to an IList<T> interface.

Applies to

Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.1