static void Get(string key, ref FastColour col) { FastColour defaultCol = col; string value = Options.Get(key); if (String.IsNullOrEmpty(value)) { return; } if (!FastColour.TryParse(value, out col)) { col = defaultCol; } }
/// <summary> Attempts to parse the next argument as a 6 digit hex number. </summary> /// <remarks> #xxxxxx or xxxxxx are accepted. </remarks> public bool NextHexColour(out FastColour value) { return(FastColour.TryParse(Next(), out value)); }
public override bool IsValidValue(string s) { FastColour col; return(FastColour.TryParse(s, out col)); }