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
Properties
this[int]
Gets the string with the specified value.
public string? this[int value] { get; }
Parameters
valueintThe value.
Property Value
this[string]
Gets the string with the specified value.
public string? this[string value] { get; }
Parameters
valuestringThe value.
Property Value
Methods
GetDynamicMemberNames()
Gets the dynamic member names.
public override IEnumerable<string> GetDynamicMemberNames()
Returns
ToString()
Returns a string that represents this instance.
public override string ToString()
Returns
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
binderGetMemberBinderThe binder.
resultobjectThe result.