AvalonStudio.Languages.CSharp.IndentationReformatter.IsSingleStatementKeyword C# (CSharp) Метод

IsSingleStatementKeyword() приватный статический Метод

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;
            }
        }