AcceptIf Method

CSharpCodeParser.AcceptIf Method

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.

Namespace:  System.Web.Razor.Parser
Assembly:  System.Web.Razor (in System.Web.Razor.dll)

protected internal bool AcceptIf(
	CSharpKeyword keyword
)

Parameters

keyword
Type: System.Web.Razor.Tokenizer.Symbols.CSharpKeyword
The keyword to accept.

Return Value

Type: System.Boolean
true if the parser accepts the ‘IF’ keyword; otherwise, false.
Show:
© 2016 Microsoft