GroupCollection.IList<Group>.Item[Int32] Property

Definition

Gets the group at the specified position in the collection.

C#
System.Text.RegularExpressions.Group System.Collections.Generic.IList<System.Text.RegularExpressions.Group>.Item[int index] { get; set; }

Parameters

index
Int32

The zero-based index of the group in the group collection.

Property Value

The group in the desired position.

Implements

Exceptions

Cannot set an item. This is a read-only collection.

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