INNER CODE UNIT · C#
Throw
waf/CSharpRepl · CSharpRepl.Services/Configuration.cs:271
static void Throw() => throw new ArgumentException(KeyBindingPatternDescription, nameof(keyPattern));
static bool TryParseConsoleModifiers(string text, out ConsoleModifiers result)
{
if (Enum.TryParse(text, ignoreCase: true, out result))
{
return true;
}
else if (text.Equals("ctrl", StringComparison.OrdinalIgnoreCase))
{
result = ConsoleModifiers.Control;
return true;
}
result = default;
return false;
}
}
}