JsConditionalExpression
Assembly: ServiceStack.Common.dll
View Source
Declaration
public class JsConditionalExpression : JsExpression, IRawString
Properties
Test
View Source
Declaration
public JsToken Test { get; }
Consequent
View Source
Declaration
public JsToken Consequent { get; }
Alternate
View Source
Declaration
public JsToken Alternate { get; }
Methods
ToRawString()
View Source
Declaration
public override string ToRawString()
Returns
System.String
ToJsAst()
View Source
Declaration
public override Dictionary<string, object> ToJsAst()
Returns
System.Collections.Generic.Dictionary<System.String,System.Object>
Evaluate(ScriptScopeContext)
View Source
Declaration
public override object Evaluate(ScriptScopeContext scope)
Returns
System.Object
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
Equals(JsConditionalExpression)
View Source
Declaration
protected bool Equals(JsConditionalExpression other)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.Script.JsConditionalExpression | other |
Equals(Object)
View Source
Declaration
public override bool Equals(object obj)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Object | obj |
GetHashCode()
View Source
Declaration
public override int GetHashCode()
Returns
System.Int32
Inherited Methods
ToJsAst()
View Source
Declaration
public abstract Dictionary<string, object> ToJsAst()
Returns
System.Collections.Generic.Dictionary<System.String,System.Object>
ToJsAstType()
View Source
Declaration
public virtual string ToJsAstType()
Returns
System.String