Table of Contents

Class RegexMatch

Namespace
Dynamitey.DynamicObjects
Assembly
Dynamitey.Community.dll

A Dynamic Regex Match

public sealed class RegexMatch : BaseObject, IDynamicMetaObjectProvider, IEquivalentType, IRegexMatch
Inheritance
RegexMatch
Implements
Inherited Members

Constructors

RegexMatch(Match, Regex?)

Initializes a new instance of the RegexMatch class.

[RequiresDynamicCode("Constructing any BaseObject-derived type instantiates System.Dynamic.DynamicObject, whose default constructor requires the DLR's runtime code generation; not supported when AOT-compiled.")]
public RegexMatch(Match match, Regex? regex = null)

Parameters

match Match

The match.

regex Regex

The regex.

Properties

this[int]

Gets the string with the specified value.

public string? this[int value] { get; }

Parameters

value int

The value.

Property Value

string

The string.

this[string]

Gets the string with the specified value.

public string? this[string value] { get; }

Parameters

value string

The value.

Property Value

string

The string.

Methods

GetDynamicMemberNames()

Gets the dynamic member names.

public override IEnumerable<string> GetDynamicMemberNames()

Returns

IEnumerable<string>

ToString()

Returns a string that represents this instance.

public override string ToString()

Returns

string

A string that represents this instance.

TryGetMember(GetMemberBinder, out object?)

Tries the get member.

[UnconditionalSuppressMessage("Trimming", "IL2026", Justification = "Calls the annotated TryTypeForName/Dynamic.InvokeConstructor/Dynamic.CoerceConvert. This is a DynamicObject.TryGetMember override: it can't carry [RequiresUnreferencedCode] itself without mismatching the unannotated base member, and the DLR invokes it only after the consumer's own dynamic member access already triggered the framework's warning.")]
[UnconditionalSuppressMessage("AOT", "IL3050", Justification = "Same calls as above; see the IL2026 suppression on this member.")]
public override bool TryGetMember(GetMemberBinder binder, out object? result)

Parameters

binder GetMemberBinder

The binder.

result object

The result.

Returns

bool