private static IsSingleStatementKeyword ( string keyword ) : bool | ||
keyword | string | |
Результат | bool |
private static bool IsSingleStatementKeyword(string keyword)
{
switch (keyword)
{
case "if":
case "for":
case "while":
case "do":
case "foreach":
case "using":
case "lock":
return true;
default:
return false;
}
}