public Encapsulator(EncapsulatorType type, string opening, string closing) { Type = type; Opening = opening; Closing = closing; }
public Encapsulator(EncapsulatorType type, char opening, char closing) { Type = type; Opening = opening.ToString(); Closing = closing.ToString(); }
public static int GetEncapsulatorIndex(EncapsulatorType encapsulatorType) { return(Encapsulators.FindIndex(x => x.Type == encapsulatorType)); }