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
Type | Name |
---|---|
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
Type | Name |
---|---|
System.Collections.Generic.IDictionary<System.String,System.Object> | scopeArgs |
System.Boolean | defaultToNullValues |
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 |
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
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
Inherited Methods
Extract(String, List<StatementExprBlock>)
View Source
Declaration
public static string Extract(string content, List<StatementExprBlock> allStatements)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | content |
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
Type | Name |
---|---|
System.Boolean | applyToChildren |
Prepare(List<StatementExprBlock>)
View Source
Declaration
protected virtual 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 |
WriteStatement(MarkdownViewBase, TextWriter, Dictionary<String, Object>)
View Source
Declaration
protected void WriteStatement(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 |