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
Type | Name |
---|---|
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
Type | Name |
---|---|
ServiceStack.Markdown.MarkdownViewBase | instance |
System.IO.TextWriter | textWriter |
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
Type | Name |
---|---|
ServiceStack.Markdown.MarkdownViewBase | instance |
System.IO.TextWriter | textWriter |
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
Type | Name |
---|---|
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
Type | Name |
---|---|
System.Collections.Generic.Dictionary<System.String,System.Object> | scopeArgs |
System.Boolean | defaultToNullValues |
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
Type | Name |
---|---|
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
Type | Name |
---|---|
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
Type | Name |
---|---|
System.Collections.Generic.IDictionary<System.String,System.Object> | scopeArgs |
System.Boolean | defaultToNullValues |
OnFirstRun()
View Source
Declaration
protected override void OnFirstRun()