C# Class Crisis.CommandLine.QuotationInfo

Represents information about the escapable characters within a quoted value.
显示文件 Open project: teeknofil/Crisis-Wordlist-Generator Class Usage Examples

Public Methods

Method Description
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.

Method Details

AddEscapeCode() public method

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.
return void

Equals() public method

Determines whether the specified is equal to the current .
public Equals ( object obj ) : bool
obj object The to compare with the current .
return bool

EscapeCharacter() public method

Escapes the escape code character specified.
public EscapeCharacter ( char code ) : char
code char The code.
return char

GetHashCode() public method

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
return int

IsEscapeCode() public method

Determines whether the specified character is an escape code within this quotation.
public IsEscapeCode ( char code ) : bool
code char The code.
return bool

QuotationInfo() public method

Initializes a new instance of the QuotationInfo class.
public QuotationInfo ( char quotationMark ) : System
quotationMark char The quotation mark used for this quotation.
return System

RemoveEscapeCode() public method

Removes an escape code from this quotation.
public RemoveEscapeCode ( char code ) : void
code char The code to remove.
return void