CSharpCodeParser.AcceptIf(CSharpKeyword) Method

Definition

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the parser accepts the ‘IF’ keyword.

protected internal bool AcceptIf (System.Web.Razor.Tokenizer.Symbols.CSharpKeyword keyword);
member this.AcceptIf : System.Web.Razor.Tokenizer.Symbols.CSharpKeyword -> bool
Protected Friend Function AcceptIf (keyword As CSharpKeyword) As Boolean

Parameters

keyword
CSharpKeyword

The keyword to accept.

Returns

true if the parser accepts the ‘IF’ keyword; otherwise, false.

Applies to