Skip to main content

IfStatementExprBlock

Assembly: ServiceStack.Razor.dll​
View Source​
Declaration
public class IfStatementExprBlock : EvalExprStatementBase, ITemplateWriter

Properties​

ElseStatement​

View Source​
Declaration
public string ElseStatement { get; set; }

ElseChildBlocks​

View Source​
Declaration
public TemplateBlock[] ElseChildBlocks { get; set; }

Inherited Properties​

CodeGenMethodName​

View Source​
Declaration
protected string CodeGenMethodName { get; set; }

Methods​

Prepare(List<StatementExprBlock>)​

View Source​
Declaration
protected override void Prepare(List<StatementExprBlock> allStatements)
Parameters​
TypeName
System.Collections.Generic.List<ServiceStack.Support.Markdown.StatementExprBlock>allStatements

Write(MarkdownViewBase, TextWriter, Dictionary<String, Object>)​

View Source​
Declaration
public override void Write(MarkdownViewBase instance, TextWriter textWriter, Dictionary<string, object> scopeArgs)
Parameters​
TypeName
ServiceStack.Markdown.MarkdownViewBaseinstance
System.IO.TextWritertextWriter
System.Collections.Generic.Dictionary<System.String,System.Object>scopeArgs

OnFirstRun()​

View Source​
Declaration
protected override void OnFirstRun()

WriteElseStatement(MarkdownViewBase, TextWriter, Dictionary<String, Object>)​

View Source​
Declaration
protected void WriteElseStatement(MarkdownViewBase instance, TextWriter textWriter, Dictionary<string, object> scopeArgs)
Parameters​
TypeName
ServiceStack.Markdown.MarkdownViewBaseinstance
System.IO.TextWritertextWriter
System.Collections.Generic.Dictionary<System.String,System.Object>scopeArgs

Inherited Methods​

Evaluate<T>(Dictionary<String, Object>)​

View Source​
Declaration
public T Evaluate<T>(Dictionary<string, object> scopeArgs)
Returns​

<T>

Parameters​
TypeName
System.Collections.Generic.Dictionary<System.String,System.Object>scopeArgs
Type Parameters​
  • T

Evaluate<T>(Dictionary<String, Object>, Boolean)​

View Source​
Declaration
public T Evaluate<T>(Dictionary<string, object> scopeArgs, bool defaultToNullValues)
Returns​

<T>

Parameters​
TypeName
System.Collections.Generic.Dictionary<System.String,System.Object>scopeArgs
System.BooleandefaultToNullValues
Type Parameters​
  • T

GetExprParams()​

View Source​
Declaration
protected Dictionary<string, Type> GetExprParams()
Returns​

System.Collections.Generic.Dictionary<System.String,System.Type>

GetParamNames(Dictionary<String, Object>)​

View Source​
Declaration
public string[] GetParamNames(Dictionary<string, object> scopeArgs)
Returns​

System.String[]

Parameters​
TypeName
System.Collections.Generic.Dictionary<System.String,System.Object>scopeArgs

GetParamValues(IDictionary<String, Object>)​

View Source​
Declaration
protected List<object> GetParamValues(IDictionary<string, object> scopeArgs)
Returns​

System.Collections.Generic.List<System.Object>

Parameters​
TypeName
System.Collections.Generic.IDictionary<System.String,System.Object>scopeArgs

GetParamValues(IDictionary<String, Object>, Boolean)​

View Source​
Declaration
protected List<object> GetParamValues(IDictionary<string, object> scopeArgs, bool defaultToNullValues)
Returns​

System.Collections.Generic.List<System.Object>

Parameters​
TypeName
System.Collections.Generic.IDictionary<System.String,System.Object>scopeArgs
System.BooleandefaultToNullValues

OnFirstRun()​

View Source​
Declaration
protected override void OnFirstRun()

Implements​