Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

System.Text.RegularExpressions.Group.Name is not in Standard #847

Closed
no1melman opened this issue Jul 30, 2018 · 2 comments
Closed

System.Text.RegularExpressions.Group.Name is not in Standard #847

no1melman opened this issue Jul 30, 2018 · 2 comments

Comments

@no1melman
Copy link

So looking at the reference source for .NET 472, the class has the public property Name:

public string Name
    {
        get
        {
            return _name;
        }
    }

However, the decompiled source from netstandard gives this:

  public class Group : Capture
  {
    internal Group();

    /// <summary>Gets a collection of all the captures matched by the capturing group, in innermost-leftmost-first order (or innermost-rightmost-first order if the regular expression is modified with the <see cref="F:System.Text.RegularExpressions.RegexOptions.RightToLeft"></see> option). The collection may have zero or more items.</summary>
    /// <returns>The collection of substrings matched by the group.</returns>
    public CaptureCollection Captures { get; }

    /// <summary>Gets a value indicating whether the match is successful.</summary>
    /// <returns>true if the match is successful; otherwise, false.</returns>
    public bool Success { get; }

    /// <summary>Returns a Group object equivalent to the one supplied that is safe to share between multiple threads.</summary>
    /// <param name="inner">The input <see cref="T:System.Text.RegularExpressions.Group"></see> object.</param>
    /// <returns>A regular expression Group object.</returns>
    /// <exception cref="T:System.ArgumentNullException"><paramref name="inner">inner</paramref> is null.</exception>
    public static Group Synchronized(Group inner);
  }
@akoeplinger
Copy link
Member

Adding that property is proposed for the next version of the standard, see #816

@terrajobst
Copy link

Fixed by #816

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants