public static Symbol ToSymbol(this PSChangeType psChangeType) { bool success = SymbolsByPSChangeType.TryGetValue(psChangeType, out Symbol symbol); if (!success) { throw new ArgumentOutOfRangeException(nameof(psChangeType)); } return(symbol); }
public static Color ToColor(this PSChangeType psChangeType) { bool success = ColorsByPSChangeType.TryGetValue(psChangeType, out Color colorCode); if (!success) { throw new ArgumentOutOfRangeException(nameof(psChangeType)); } return(colorCode); }