CSharpCodeParser.AcceptIf(CSharpKeyword) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.