Skip to content

WildcardPattern class

namespace: Serenity   assembly: Serenity.Net.Core

A name pattern with wildcards, e.g. "aud_" or "Northwind.", which is compiled once and matched many times: * matches any text, and ? one character unless it is turned off. A pattern without wildcards is compared as a string, and "*" matches any name, without a regular expression. The case is ignored by default.

public sealed class WildcardPattern

Public Members

name description
WildcardPattern(…) Creates a pattern.
HasWildcards { get; } Gets whether the pattern has wildcards.
MatchesAll { get; } Gets whether the pattern matches any name, e.g. "*".
Pattern { get; } Gets the pattern as it was written.
IsMatch(…) Gets whether a name matches the pattern.
override ToString()
static Create(…) Creates the patterns of some texts, leaving out the empty ones.
static IsMatchAny(…) Gets whether any of the patterns matches any of the names.

See Also