IReadOnlyPatternCollection.TryGetMatchingPattern Method

Namespace
Kampute.DocToolkit.Collections
Assembly
  • Kampute.DocToolkit.dll

Definition

Attempts to retrieve a pattern that matches the specified value.
bool TryGetMatchingPattern(string value, [NotNullWhen(true)] out string pattern)

Parameters

value string
The value to find a pattern for.
pattern string
When this method returns, contains the pattern that matches the value, if found; otherwise, null. This parameter is passed uninitialized.

Returns

bool
true if a pattern was found; otherwise, false.