op_Explicit

explicit operator

Casts specified QuoteType instance to the Char

public static explicit operator char(QuoteType quote)
Parameter Type Description
quote QuoteType Quote type instance to cast

See Also


explicit operator

Casts specific Char to the corresponding QuoteType, throws exception if casting is invalid

public static explicit operator QuoteType(char character)
Parameter Type Description
character Char A single quote (U+0027 APOSTROPHE) or double quote (U+0022 QUOTATION MARK) character. Exception will be thrown if any other character will be specified.

Exceptions

exception condition
ArgumentOutOfRangeException Specified Char is not either a quotation mark or apostrophe

See Also