Skip to main content

EvalExprStatementBase

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

Properties​

CodeGenMethodName​

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

Inherited Properties​

ChildBlocks​

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

Condition​

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

Id​

View Source​
Declaration
public int Id { get; set; }

Statement​

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

Fields​

ReturnType​

View Source​
Declaration
protected Type ReturnType

Methods​

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

OnFirstRun()​

View Source​
Declaration
protected override void OnFirstRun()

GetExprParams()​

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

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

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

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

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

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

Inherited Methods​

Extract(String, List<StatementExprBlock>)​

View Source​
Declaration
public static string Extract(string content, List<StatementExprBlock> allStatements)
Returns​

System.String

Parameters​
TypeName
System.Stringcontent
System.Collections.Generic.List<ServiceStack.Support.Markdown.StatementExprBlock>allStatements

OnAfterFirstRun()​

View Source​
Declaration
protected override void OnAfterFirstRun()

OnFirstRun()​

View Source​
Declaration
protected override void OnFirstRun()

OnFirstRun(Boolean)​

View Source​
Declaration
protected void OnFirstRun(bool applyToChildren)
Parameters​
TypeName
System.BooleanapplyToChildren

Prepare(List<StatementExprBlock>)​

View Source​
Declaration
protected virtual 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

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

View Source​
Declaration
protected void WriteStatement(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

Implements​