C# Класс Crisis.CommandLine.QuotationInfo

Represents information about the escapable characters within a quoted value.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddEscapeCode ( char code, char replacement ) : void

Adds the escape code to this quotation.

Equals ( object obj ) : bool

Determines whether the specified is equal to the current .

EscapeCharacter ( char code ) : char

Escapes the escape code character specified.

GetHashCode ( ) : int

Serves as a hash function for a particular type. is suitable for use in hashing algorithms and data structures like a hash table.

IsEscapeCode ( char code ) : bool

Determines whether the specified character is an escape code within this quotation.

QuotationInfo ( char quotationMark ) : System

Initializes a new instance of the QuotationInfo class.

RemoveEscapeCode ( char code ) : void

Removes an escape code from this quotation.

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

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

Adds the escape code to this quotation.
public AddEscapeCode ( char code, char replacement ) : void
code char The code, i.e. the character that will be used after the escape /// character to denote this escape sequence.
replacement char The character with which the escape sequence will be replaced.
Результат void

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

Determines whether the specified is equal to the current .
public Equals ( object obj ) : bool
obj object The to compare with the current .
Результат bool

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

Escapes the escape code character specified.
public EscapeCharacter ( char code ) : char
code char The code.
Результат char

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

Serves as a hash function for a particular type. is suitable for use in hashing algorithms and data structures like a hash table.
public GetHashCode ( ) : int
Результат int

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

Determines whether the specified character is an escape code within this quotation.
public IsEscapeCode ( char code ) : bool
code char The code.
Результат bool

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

Initializes a new instance of the QuotationInfo class.
public QuotationInfo ( char quotationMark ) : System
quotationMark char The quotation mark used for this quotation.
Результат System

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

Removes an escape code from this quotation.
public RemoveEscapeCode ( char code ) : void
code char The code to remove.
Результат void