C# Класс Qowaiv.Text.WildcardPattern

Наследование: ISerializable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Equals bool
IsMatch bool

Открытые методы

Метод Описание
ISerializable ( SerializationInfo info, StreamingContext context ) : void

Adds the underlying property of a wild card pattern to the serialization info.

IsMatch ( string input ) : bool

Indicates whether the wildcard pattern finds a match in the specified input string.

IsMatch ( string pattern, string input ) : bool

Indicates whether the specified wildcard pattern finds a match in the specified input string.

IsMatch ( string pattern, string input, WildcardPatternOptions options, System.StringComparison comparisonType ) : bool

Indicates whether the specified wildcard pattern finds a match in the specified input string.

WildcardPattern ( string pattern ) : System

Initializes a new instance of a wild card pattern.

WildcardPattern ( string pattern, WildcardPatternOptions options, System.StringComparison comparisonType ) : System

Initializes a new instance of a wild card pattern.

Защищенные методы

Метод Описание
GetObjectData ( SerializationInfo info, StreamingContext context ) : void

Adds the underlying property of a wild card pattern to the serialization info.

this is used by ISerializable.GetObjectData() so that it can be changed by derived classes.

WildcardPattern ( ) : System

Initializes a new instance of a wild card pattern.

No public constructor without arguments.

WildcardPattern ( SerializationInfo info, StreamingContext context ) : System

Initializes a new instance of a wild card pattern based on the serialization info.

Приватные методы

Метод Описание
Equals ( char l, char r ) : bool
IsMatch ( string input, int p, int i ) : bool

Handles the actual matching.

Описание методов

GetObjectData() защищенный Метод

Adds the underlying property of a wild card pattern to the serialization info.
this is used by ISerializable.GetObjectData() so that it can be changed by derived classes.
protected GetObjectData ( SerializationInfo info, StreamingContext context ) : void
info System.Runtime.Serialization.SerializationInfo The serialization info.
context System.Runtime.Serialization.StreamingContext The streaming context.
Результат void

ISerializable() публичный Метод

Adds the underlying property of a wild card pattern to the serialization info.
public ISerializable ( SerializationInfo info, StreamingContext context ) : void
info System.Runtime.Serialization.SerializationInfo The serialization info.
context System.Runtime.Serialization.StreamingContext The streaming context.
Результат void

IsMatch() публичный Метод

Indicates whether the wildcard pattern finds a match in the specified input string.
/// input is null. ///
public IsMatch ( string input ) : bool
input string /// The string to search for a match. ///
Результат bool

IsMatch() публичный статический Метод

Indicates whether the specified wildcard pattern finds a match in the specified input string.
/// input is null. ///
public static IsMatch ( string pattern, string input ) : bool
pattern string /// The string that represents the wildcard pattern. ///
input string /// The string to search for a match. ///
Результат bool

IsMatch() публичный статический Метод

Indicates whether the specified wildcard pattern finds a match in the specified input string.
/// input is null. ///
public static IsMatch ( string pattern, string input, WildcardPatternOptions options, System.StringComparison comparisonType ) : bool
pattern string /// The string that represents the wildcard pattern. ///
input string /// The string to search for a match. ///
options WildcardPatternOptions /// The wildcard pattern options. ///
comparisonType System.StringComparison /// The type of comparison. ///
Результат bool

WildcardPattern() защищенный Метод

Initializes a new instance of a wild card pattern.
No public constructor without arguments.
protected WildcardPattern ( ) : System
Результат System

WildcardPattern() защищенный Метод

Initializes a new instance of a wild card pattern based on the serialization info.
protected WildcardPattern ( SerializationInfo info, StreamingContext context ) : System
info System.Runtime.Serialization.SerializationInfo The serialization info.
context System.Runtime.Serialization.StreamingContext The streaming context.
Результат System

WildcardPattern() публичный Метод

Initializes a new instance of a wild card pattern.
/// pattern is null. /// /// pattern is empty or invalid. ///
public WildcardPattern ( string pattern ) : System
pattern string /// The pattern to match on. ///
Результат System

WildcardPattern() публичный Метод

Initializes a new instance of a wild card pattern.
/// pattern is null. /// /// pattern is empty or invalid. ///
public WildcardPattern ( string pattern, WildcardPatternOptions options, System.StringComparison comparisonType ) : System
pattern string /// The pattern to match on. ///
options WildcardPatternOptions /// The wildcard pattern options. ///
comparisonType System.StringComparison /// The type of comparison. ///
Результат System