Skip to main content

DefaultScripts

Assembly: ServiceStack.Common.dll
View Source
Declaration
public class DefaultScripts : ScriptMethods, IConfigureScriptContext

Properties

RemoveNewLinesFor

View Source
Declaration
public static List<string> RemoveNewLinesFor { get; }

Inherited Properties

Context

View Source
Declaration
public ScriptContext Context { get; set; }

InvokerCache

View Source
Declaration
public ConcurrentDictionary<string, MethodInvoker> InvokerCache { get; }

Pages

View Source
Declaration
public ISharpPages Pages { get; set; }

Fields

Instance

View Source
Declaration
public static readonly DefaultScripts Instance

EvaluateWhenSkippingFilterExecution

View Source
Declaration
public static List<string> EvaluateWhenSkippingFilterExecution

XssFragments

View Source
Declaration
public static string[] XssFragments

Methods

push(IList, Object)

View Source
Declaration
public int push(IList list, object item)
Returns

System.Int32

Parameters
TypeName
System.Collections.IListlist
System.Objectitem

pop(IList)

View Source
Declaration
public object pop(IList list)
Returns

System.Object

Parameters
TypeName
System.Collections.IListlist

shift(IList)

View Source
Declaration
public object shift(IList list)
Returns

System.Object

Parameters
TypeName
System.Collections.IListlist

unshift(IList, Object)

View Source
Declaration
public object unshift(IList list, object item)
Returns

System.Object

Parameters
TypeName
System.Collections.IListlist
System.Objectitem

indexOf(Object, Object)

View Source
Declaration
public int indexOf(object target, object item)
Returns

System.Int32

Parameters
TypeName
System.Objecttarget
System.Objectitem

indexOf(Object, Object, Int32)

View Source
Declaration
public int indexOf(object target, object item, int startIndex)
Returns

System.Int32

Parameters
TypeName
System.Objecttarget
System.Objectitem
System.Int32startIndex

lastIndexOf(Object, Object)

View Source
Declaration
public int lastIndexOf(object target, object item)
Returns

System.Int32

Parameters
TypeName
System.Objecttarget
System.Objectitem

lastIndexOf(Object, Object, Int32)

View Source
Declaration
public int lastIndexOf(object target, object item, int startIndex)
Returns

System.Int32

Parameters
TypeName
System.Objecttarget
System.Objectitem
System.Int32startIndex

splice(IList, Int32)

View Source
Declaration
public object splice(IList list, int removeAt)
Returns

System.Object

Parameters
TypeName
System.Collections.IListlist
System.Int32removeAt

splice(IList, Int32, Int32)

View Source
Declaration
public List<object> splice(IList list, int removeAt, int deleteCount)
Returns

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

Parameters
TypeName
System.Collections.IListlist
System.Int32removeAt
System.Int32deleteCount

splice(IList, Int32, Int32, List<Object>)

View Source
Declaration
public List<object> splice(IList list, int removeAt, int deleteCount, List<object> insertItems)
Returns

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

Parameters
TypeName
System.Collections.IListlist
System.Int32removeAt
System.Int32deleteCount
System.Collections.Generic.List<System.Object>insertItems

slice(IList)

View Source
Declaration
public List<object> slice(IList list)
Returns

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

Parameters
TypeName
System.Collections.IListlist

slice(IList, Int32)

View Source
Declaration
public List<object> slice(IList list, int begin)
Returns

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

Parameters
TypeName
System.Collections.IListlist
System.Int32begin

slice(IList, Int32, Int32)

View Source
Declaration
public List<object> slice(IList list, int begin, int end)
Returns

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

Parameters
TypeName
System.Collections.IListlist
System.Int32begin
System.Int32end

forEach(ScriptScopeContext, Object, JsArrowFunctionExpression)

View Source
Declaration
public IgnoreResult forEach(ScriptScopeContext scope, object target, JsArrowFunctionExpression arrowExpr)
Returns

ServiceStack.Script.IgnoreResult

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
ServiceStack.Script.JsArrowFunctionExpressionarrowExpr

every(ScriptScopeContext, IList, JsArrowFunctionExpression)

View Source
Declaration
public bool every(ScriptScopeContext scope, IList list, JsArrowFunctionExpression expression)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Collections.IListlist
ServiceStack.Script.JsArrowFunctionExpressionexpression

some(ScriptScopeContext, IList, JsArrowFunctionExpression)

View Source
Declaration
public bool some(ScriptScopeContext scope, IList list, JsArrowFunctionExpression expression)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Collections.IListlist
ServiceStack.Script.JsArrowFunctionExpressionexpression

find(ScriptScopeContext, IList, JsArrowFunctionExpression)

View Source
Declaration
public object find(ScriptScopeContext scope, IList list, JsArrowFunctionExpression expression)
Returns

System.Object

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Collections.IListlist
ServiceStack.Script.JsArrowFunctionExpressionexpression

findIndex(ScriptScopeContext, IList, JsArrowFunctionExpression)

View Source
Declaration
public int findIndex(ScriptScopeContext scope, IList list, JsArrowFunctionExpression expression)
Returns

System.Int32

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Collections.IListlist
ServiceStack.Script.JsArrowFunctionExpressionexpression

filter(ScriptScopeContext, IList, JsArrowFunctionExpression)

View Source
Declaration
public List<object> filter(ScriptScopeContext scope, IList list, JsArrowFunctionExpression expression)
Returns

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

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Collections.IListlist
ServiceStack.Script.JsArrowFunctionExpressionexpression

flat(IList)

View Source
Declaration
public List<object> flat(IList list)
Returns

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

Parameters
TypeName
System.Collections.IListlist

flat(IList, Int32)

View Source
Declaration
public List<object> flat(IList list, int depth)
Returns

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

Parameters
TypeName
System.Collections.IListlist
System.Int32depth

flatMap(ScriptScopeContext, IList, JsArrowFunctionExpression)

View Source
Declaration
public List<object> flatMap(ScriptScopeContext scope, IList list, JsArrowFunctionExpression expression)
Returns

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

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Collections.IListlist
ServiceStack.Script.JsArrowFunctionExpressionexpression

flatMap(ScriptScopeContext, IList, JsArrowFunctionExpression, Int32)

View Source
Declaration
public List<object> flatMap(ScriptScopeContext scope, IList list, JsArrowFunctionExpression expression, int depth)
Returns

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

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Collections.IListlist
ServiceStack.Script.JsArrowFunctionExpressionexpression
System.Int32depth

includes(IList, Object)

View Source
Declaration
public bool includes(IList list, object item)
Returns

System.Boolean

Parameters
TypeName
System.Collections.IListlist
System.Objectitem

includes(IList, Object, Int32)

View Source
Declaration
public bool includes(IList list, object item, int fromIndex)
Returns

System.Boolean

Parameters
TypeName
System.Collections.IListlist
System.Objectitem
System.Int32fromIndex

sort(List<Object>)

View Source
Declaration
public List<object> sort(List<object> list)
Returns

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

Parameters
TypeName
System.Collections.Generic.List<System.Object>list

Configure(ScriptContext)

View Source
Declaration
public void Configure(ScriptContext context)
Parameters
TypeName
ServiceStack.Script.ScriptContextcontext

now()

View Source
Declaration
public DateTime now()
Returns

System.DateTime

utcNow()

View Source
Declaration
public DateTime utcNow()
Returns

System.DateTime

nowOffset()

View Source
Declaration
public DateTimeOffset nowOffset()
Returns

System.DateTimeOffset

utcNowOffset()

View Source
Declaration
public DateTimeOffset utcNowOffset()
Returns

System.DateTimeOffset

nguid()

View Source
Declaration
public Guid nguid()
Returns

System.Guid

addTicks(DateTime, Int32)

View Source
Declaration
public DateTime addTicks(DateTime target, int count)
Returns

System.DateTime

Parameters
TypeName
System.DateTimetarget
System.Int32count

addMilliseconds(DateTime, Int32)

View Source
Declaration
public DateTime addMilliseconds(DateTime target, int count)
Returns

System.DateTime

Parameters
TypeName
System.DateTimetarget
System.Int32count

addSeconds(DateTime, Int32)

View Source
Declaration
public DateTime addSeconds(DateTime target, int count)
Returns

System.DateTime

Parameters
TypeName
System.DateTimetarget
System.Int32count

addMinutes(DateTime, Int32)

View Source
Declaration
public DateTime addMinutes(DateTime target, int count)
Returns

System.DateTime

Parameters
TypeName
System.DateTimetarget
System.Int32count

addHours(DateTime, Int32)

View Source
Declaration
public DateTime addHours(DateTime target, int count)
Returns

System.DateTime

Parameters
TypeName
System.DateTimetarget
System.Int32count

addDays(DateTime, Int32)

View Source
Declaration
public DateTime addDays(DateTime target, int count)
Returns

System.DateTime

Parameters
TypeName
System.DateTimetarget
System.Int32count

addMonths(DateTime, Int32)

View Source
Declaration
public DateTime addMonths(DateTime target, int count)
Returns

System.DateTime

Parameters
TypeName
System.DateTimetarget
System.Int32count

addYears(DateTime, Int32)

View Source
Declaration
public DateTime addYears(DateTime target, int count)
Returns

System.DateTime

Parameters
TypeName
System.DateTimetarget
System.Int32count

itemsOf(Int32, Object)

View Source
Declaration
public List<object> itemsOf(int count, object target)
Returns

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

Parameters
TypeName
System.Int32count
System.Objecttarget

times(Int32)

View Source
Declaration
public List<int> times(int count)
Returns

System.Collections.Generic.List<System.Int32>

Parameters
TypeName
System.Int32count

range(Int32)

View Source
Declaration
public IEnumerable<int> range(int count)
Returns

System.Collections.Generic.IEnumerable<System.Int32>

Parameters
TypeName
System.Int32count

range(Int32, Int32)

View Source
Declaration
public IEnumerable<int> range(int start, int count)
Returns

System.Collections.Generic.IEnumerable<System.Int32>

Parameters
TypeName
System.Int32start
System.Int32count

isEven(Int32)

View Source
Declaration
public bool isEven(int value)
Returns

System.Boolean

Parameters
TypeName
System.Int32value

isOdd(Int32)

View Source
Declaration
public bool isOdd(int value)
Returns

System.Boolean

Parameters
TypeName
System.Int32value

isTrue(Object)

View Source
Declaration
public static bool isTrue(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

isTruthy(Object)

View Source
Declaration
public static bool isTruthy(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

isFalsy(Object)

View Source
Declaration
public static bool isFalsy(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

iif(Object, Object, Object)

View Source
Declaration
public object iif(object test, object ifTrue, object ifFalse)
Returns

System.Object

Parameters
TypeName
System.Objecttest
System.ObjectifTrue
System.ObjectifFalse

when(Object, Object)

View Source
Declaration
public object when(object returnTarget, object test)
Returns

System.Object

Parameters
TypeName
System.ObjectreturnTarget
System.Objecttest

ifNot(Object, Object)

View Source
Declaration
public object ifNot(object returnTarget, object test)
Returns

System.Object

Parameters
TypeName
System.ObjectreturnTarget
System.Objecttest

unless(Object, Object)

View Source
Declaration
public object unless(object returnTarget, object test)
Returns

System.Object

Parameters
TypeName
System.ObjectreturnTarget
System.Objecttest

otherwise(Object, Object)

View Source
Declaration
public object otherwise(object returnTarget, object elseReturn)
Returns

System.Object

Parameters
TypeName
System.ObjectreturnTarget
System.ObjectelseReturn

ifElse(Object, Object, Object)

View Source
Declaration
public object ifElse(object returnTarget, object test, object defaultValue)
Returns

System.Object

Parameters
TypeName
System.ObjectreturnTarget
System.Objecttest
System.ObjectdefaultValue

ifNotElse(Object, Object, Object)

View Source
Declaration
public object ifNotElse(object returnTarget, object test, object defaultValue)
Returns

System.Object

Parameters
TypeName
System.ObjectreturnTarget
System.Objecttest
System.ObjectdefaultValue

unlessElse(Object, Object, Object)

View Source
Declaration
public object unlessElse(object returnTarget, object test, object defaultValue)
Returns

System.Object

Parameters
TypeName
System.ObjectreturnTarget
System.Objecttest
System.ObjectdefaultValue

ifFalsy(Object, Object)

View Source
Declaration
public object ifFalsy(object returnTarget, object test)
Returns

System.Object

Parameters
TypeName
System.ObjectreturnTarget
System.Objecttest

ifTruthy(Object, Object)

View Source
Declaration
public object ifTruthy(object returnTarget, object test)
Returns

System.Object

Parameters
TypeName
System.ObjectreturnTarget
System.Objecttest

falsy(Object, Object)

View Source
Declaration
public object falsy(object test, object returnIfFalsy)
Returns

System.Object

Parameters
TypeName
System.Objecttest
System.ObjectreturnIfFalsy

truthy(Object, Object)

View Source
Declaration
public object truthy(object test, object returnIfTruthy)
Returns

System.Object

Parameters
TypeName
System.Objecttest
System.ObjectreturnIfTruthy

isNull(Object)

View Source
Declaration
public bool isNull(object test)
Returns

System.Boolean

Parameters
TypeName
System.Objecttest

isNotNull(Object)

View Source
Declaration
public bool isNotNull(object test)
Returns

System.Boolean

Parameters
TypeName
System.Objecttest

exists(Object)

View Source
Declaration
public bool exists(object test)
Returns

System.Boolean

Parameters
TypeName
System.Objecttest

isZero(Double)

View Source
Declaration
public bool isZero(double value)
Returns

System.Boolean

Parameters
TypeName
System.Doublevalue

isPositive(Double)

View Source
Declaration
public bool isPositive(double value)
Returns

System.Boolean

Parameters
TypeName
System.Doublevalue

isNegative(Double)

View Source
Declaration
public bool isNegative(double value)
Returns

System.Boolean

Parameters
TypeName
System.Doublevalue

isNaN(Double)

View Source
Declaration
public bool isNaN(double value)
Returns

System.Boolean

Parameters
TypeName
System.Doublevalue

isInfinity(Double)

View Source
Declaration
public bool isInfinity(double value)
Returns

System.Boolean

Parameters
TypeName
System.Doublevalue

ifExists(Object)

View Source
Declaration
public object ifExists(object target)
Returns

System.Object

Parameters
TypeName
System.Objecttarget

ifExists(Object, Object)

View Source
Declaration
public object ifExists(object returnTarget, object test)
Returns

System.Object

Parameters
TypeName
System.ObjectreturnTarget
System.Objecttest

ifNotExists(Object, Object)

View Source
Declaration
public object ifNotExists(object returnTarget, object test)
Returns

System.Object

Parameters
TypeName
System.ObjectreturnTarget
System.Objecttest

ifNo(Object, Object)

View Source
Declaration
public object ifNo(object returnTarget, object target)
Returns

System.Object

Parameters
TypeName
System.ObjectreturnTarget
System.Objecttarget

ifNotEmpty(Object)

View Source
Declaration
public object ifNotEmpty(object target)
Returns

System.Object

Parameters
TypeName
System.Objecttarget

ifNotEmpty(Object, Object)

View Source
Declaration
public object ifNotEmpty(object returnTarget, object test)
Returns

System.Object

Parameters
TypeName
System.ObjectreturnTarget
System.Objecttest

ifEmpty(Object, Object)

View Source
Declaration
public object ifEmpty(object returnTarget, object test)
Returns

System.Object

Parameters
TypeName
System.ObjectreturnTarget
System.Objecttest

ifTrue(Object, Object)

View Source
Declaration
public object ifTrue(object returnTarget, object test)
Returns

System.Object

Parameters
TypeName
System.ObjectreturnTarget
System.Objecttest

ifFalse(Object, Object)

View Source
Declaration
public object ifFalse(object returnTarget, object test)
Returns

System.Object

Parameters
TypeName
System.ObjectreturnTarget
System.Objecttest

isEmpty(Object)

View Source
Declaration
public bool isEmpty(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

IsNullOrWhiteSpace(Object)

View Source
Declaration
public bool IsNullOrWhiteSpace(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

isEnum(Enum, Object)

View Source
Declaration
public bool isEnum(Enum source, object value)
Returns

System.Boolean

Parameters
TypeName
System.Enumsource
System.Objectvalue

hasFlag(Enum, Object)

View Source
Declaration
public bool hasFlag(Enum source, object value)
Returns

System.Boolean

Parameters
TypeName
System.Enumsource
System.Objectvalue

end()

View Source
Declaration
public StopExecution end()
Returns

ServiceStack.Script.StopExecution

end(ScriptScopeContext, Object)

View Source
Declaration
public Task end(ScriptScopeContext scope, object ignore)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectignore

end(Object)

View Source
Declaration
public StopExecution end(object ignore)
Returns

ServiceStack.Script.StopExecution

Parameters
TypeName
System.Objectignore

endIfNull(Object)

View Source
Declaration
public object endIfNull(object target)
Returns

System.Object

Parameters
TypeName
System.Objecttarget

endIfNull(Object, Object)

View Source
Declaration
public object endIfNull(object ignoreTarget, object target)
Returns

System.Object

Parameters
TypeName
System.ObjectignoreTarget
System.Objecttarget

endIfNotNull(Object)

View Source
Declaration
public object endIfNotNull(object target)
Returns

System.Object

Parameters
TypeName
System.Objecttarget

endIfNotNull(Object, Object)

View Source
Declaration
public object endIfNotNull(object ignoreTarget, object target)
Returns

System.Object

Parameters
TypeName
System.ObjectignoreTarget
System.Objecttarget

endIfExists(Object)

View Source
Declaration
public object endIfExists(object target)
Returns

System.Object

Parameters
TypeName
System.Objecttarget

endIfExists(Object, Object)

View Source
Declaration
public object endIfExists(object ignoreTarget, object target)
Returns

System.Object

Parameters
TypeName
System.ObjectignoreTarget
System.Objecttarget

endIfEmpty(Object)

View Source
Declaration
public object endIfEmpty(object target)
Returns

System.Object

Parameters
TypeName
System.Objecttarget

endIfEmpty(Object, Object)

View Source
Declaration
public object endIfEmpty(object ignoreTarget, object target)
Returns

System.Object

Parameters
TypeName
System.ObjectignoreTarget
System.Objecttarget

endIfNotEmpty(Object)

View Source
Declaration
public object endIfNotEmpty(object target)
Returns

System.Object

Parameters
TypeName
System.Objecttarget

endIfNotEmpty(Object, Object)

View Source
Declaration
public object endIfNotEmpty(object ignoreTarget, object target)
Returns

System.Object

Parameters
TypeName
System.ObjectignoreTarget
System.Objecttarget

endIfFalsy(Object)

View Source
Declaration
public object endIfFalsy(object target)
Returns

System.Object

Parameters
TypeName
System.Objecttarget

endIfFalsy(Object, Object)

View Source
Declaration
public object endIfFalsy(object ignoreTarget, object target)
Returns

System.Object

Parameters
TypeName
System.ObjectignoreTarget
System.Objecttarget

endIfTruthy(Object)

View Source
Declaration
public object endIfTruthy(object target)
Returns

System.Object

Parameters
TypeName
System.Objecttarget

endIfTruthy(Object, Object)

View Source
Declaration
public object endIfTruthy(object ignoreTarget, object target)
Returns

System.Object

Parameters
TypeName
System.ObjectignoreTarget
System.Objecttarget

endIf(Object)

View Source
Declaration
public object endIf(object test)
Returns

System.Object

Parameters
TypeName
System.Objecttest

endIf(Object, Boolean)

View Source
Declaration
public object endIf(object returnTarget, bool test)
Returns

System.Object

Parameters
TypeName
System.ObjectreturnTarget
System.Booleantest

endIfAny(ScriptScopeContext, Object, Object)

View Source
Declaration
public object endIfAny(ScriptScopeContext scope, object target, object expression)
Returns

System.Object

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

endIfAll(ScriptScopeContext, Object, Object)

View Source
Declaration
public object endIfAll(ScriptScopeContext scope, object target, object expression)
Returns

System.Object

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

endWhere(ScriptScopeContext, Object, Object)

View Source
Declaration
public object endWhere(ScriptScopeContext scope, object target, object expression)
Returns

System.Object

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

endWhere(ScriptScopeContext, Object, Object, Object)

View Source
Declaration
public object endWhere(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns

System.Object

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression
System.ObjectscopeOptions

ifEnd(Boolean)

View Source
Declaration
public object ifEnd(bool test)
Returns

System.Object

Parameters
TypeName
System.Booleantest

ifEnd(Object, Boolean)

View Source
Declaration
public object ifEnd(object ignoreTarget, bool test)
Returns

System.Object

Parameters
TypeName
System.ObjectignoreTarget
System.Booleantest

ifNotEnd(Boolean)

View Source
Declaration
public object ifNotEnd(bool test)
Returns

System.Object

Parameters
TypeName
System.Booleantest

ifNotEnd(Object, Boolean)

View Source
Declaration
public object ifNotEnd(object ignoreTarget, bool test)
Returns

System.Object

Parameters
TypeName
System.ObjectignoreTarget
System.Booleantest

onlyIfNull(Object)

View Source
Declaration
public object onlyIfNull(object target)
Returns

System.Object

Parameters
TypeName
System.Objecttarget

onlyIfNull(Object, Object)

View Source
Declaration
public object onlyIfNull(object ignoreTarget, object target)
Returns

System.Object

Parameters
TypeName
System.ObjectignoreTarget
System.Objecttarget

onlyIfNotNull(Object)

View Source
Declaration
public object onlyIfNotNull(object target)
Returns

System.Object

Parameters
TypeName
System.Objecttarget

onlyIfNotNull(Object, Object)

View Source
Declaration
public object onlyIfNotNull(object ignoreTarget, object target)
Returns

System.Object

Parameters
TypeName
System.ObjectignoreTarget
System.Objecttarget

onlyIfExists(Object)

View Source
Declaration
public object onlyIfExists(object target)
Returns

System.Object

Parameters
TypeName
System.Objecttarget

onlyIfExists(Object, Object)

View Source
Declaration
public object onlyIfExists(object ignoreTarget, object target)
Returns

System.Object

Parameters
TypeName
System.ObjectignoreTarget
System.Objecttarget

onlyIfEmpty(Object)

View Source
Declaration
public object onlyIfEmpty(object target)
Returns

System.Object

Parameters
TypeName
System.Objecttarget

onlyIfEmpty(Object, Object)

View Source
Declaration
public object onlyIfEmpty(object ignoreTarget, object target)
Returns

System.Object

Parameters
TypeName
System.ObjectignoreTarget
System.Objecttarget

onlyIfNotEmpty(Object)

View Source
Declaration
public object onlyIfNotEmpty(object target)
Returns

System.Object

Parameters
TypeName
System.Objecttarget

onlyIfNotEmpty(Object, Object)

View Source
Declaration
public object onlyIfNotEmpty(object ignoreTarget, object target)
Returns

System.Object

Parameters
TypeName
System.ObjectignoreTarget
System.Objecttarget

onlyIfFalsy(Object)

View Source
Declaration
public object onlyIfFalsy(object target)
Returns

System.Object

Parameters
TypeName
System.Objecttarget

onlyIfFalsy(Object, Object)

View Source
Declaration
public object onlyIfFalsy(object ignoreTarget, object target)
Returns

System.Object

Parameters
TypeName
System.ObjectignoreTarget
System.Objecttarget

onlyIfTruthy(Object)

View Source
Declaration
public object onlyIfTruthy(object target)
Returns

System.Object

Parameters
TypeName
System.Objecttarget

onlyIfTruthy(Object, Object)

View Source
Declaration
public object onlyIfTruthy(object ignoreTarget, object target)
Returns

System.Object

Parameters
TypeName
System.ObjectignoreTarget
System.Objecttarget

onlyIf(Object)

View Source
Declaration
public object onlyIf(object test)
Returns

System.Object

Parameters
TypeName
System.Objecttest

onlyIf(Object, Boolean)

View Source
Declaration
public object onlyIf(object returnTarget, bool test)
Returns

System.Object

Parameters
TypeName
System.ObjectreturnTarget
System.Booleantest

onlyIfAny(ScriptScopeContext, Object, Object)

View Source
Declaration
public object onlyIfAny(ScriptScopeContext scope, object target, object expression)
Returns

System.Object

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

onlyIfAll(ScriptScopeContext, Object, Object)

View Source
Declaration
public object onlyIfAll(ScriptScopeContext scope, object target, object expression)
Returns

System.Object

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

onlyWhere(ScriptScopeContext, Object, Object)

View Source
Declaration
public object onlyWhere(ScriptScopeContext scope, object target, object expression)
Returns

System.Object

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

onlyIfDebug(Object)

View Source
Declaration
public object onlyIfDebug(object returnTarget)
Returns

System.Object

Parameters
TypeName
System.ObjectreturnTarget

endIfDebug(Object)

View Source
Declaration
public object endIfDebug(object returnTarget)
Returns

System.Object

Parameters
TypeName
System.ObjectreturnTarget

onlyWhere(ScriptScopeContext, Object, Object, Object)

View Source
Declaration
public object onlyWhere(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns

System.Object

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression
System.ObjectscopeOptions

ifOnly(Boolean)

View Source
Declaration
public object ifOnly(bool test)
Returns

System.Object

Parameters
TypeName
System.Booleantest

ifOnly(Object, Boolean)

View Source
Declaration
public object ifOnly(object ignoreTarget, bool test)
Returns

System.Object

Parameters
TypeName
System.ObjectignoreTarget
System.Booleantest

ifNotOnly(Boolean)

View Source
Declaration
public object ifNotOnly(bool test)
Returns

System.Object

Parameters
TypeName
System.Booleantest

ifNotOnly(Object, Boolean)

View Source
Declaration
public object ifNotOnly(object ignoreTarget, bool test)
Returns

System.Object

Parameters
TypeName
System.ObjectignoreTarget
System.Booleantest

ifDo(Object)

View Source
Declaration
public object ifDo(object test)
Returns

System.Object

Parameters
TypeName
System.Objecttest

ifDo(Object, Object)

View Source
Declaration
public object ifDo(object ignoreTarget, object test)
Returns

System.Object

Parameters
TypeName
System.ObjectignoreTarget
System.Objecttest

doIf(Object)

View Source
Declaration
public object doIf(object test)
Returns

System.Object

Parameters
TypeName
System.Objecttest

doIf(Object, Object)

View Source
Declaration
public object doIf(object ignoreTarget, object test)
Returns

System.Object

Parameters
TypeName
System.ObjectignoreTarget
System.Objecttest

ifUse(Object, Object)

View Source
Declaration
public object ifUse(object test, object useValue)
Returns

System.Object

Parameters
TypeName
System.Objecttest
System.ObjectuseValue

ifShow(Object, Object)

View Source
Declaration
public object ifShow(object test, object useValue)
Returns

System.Object

Parameters
TypeName
System.Objecttest
System.ObjectuseValue

ifShowRaw(Object, Object)

View Source
Declaration
public object ifShowRaw(object test, object useValue)
Returns

System.Object

Parameters
TypeName
System.Objecttest
System.ObjectuseValue

useIf(Object, Object)

View Source
Declaration
public object useIf(object useValue, object test)
Returns

System.Object

Parameters
TypeName
System.ObjectuseValue
System.Objecttest

showIf(Object, Object)

View Source
Declaration
public object showIf(object useValue, object test)
Returns

System.Object

Parameters
TypeName
System.ObjectuseValue
System.Objecttest

showIfExists(Object, Object)

View Source
Declaration
public object showIfExists(object useValue, object test)
Returns

System.Object

Parameters
TypeName
System.ObjectuseValue
System.Objecttest

use(Object, Object)

View Source
Declaration
public object use(object ignoreTarget, object useValue)
Returns

System.Object

Parameters
TypeName
System.ObjectignoreTarget
System.ObjectuseValue

show(Object, Object)

View Source
Declaration
public object show(object ignoreTarget, object useValue)
Returns

System.Object

Parameters
TypeName
System.ObjectignoreTarget
System.ObjectuseValue

showRaw(Object, String)

View Source
Declaration
public IRawString showRaw(object ignoreTarget, string content)
Returns

ServiceStack.IRawString

Parameters
TypeName
System.ObjectignoreTarget
System.Stringcontent

useFmt(Object, String, Object)

View Source
Declaration
public object useFmt(object ignoreTarget, string format, object arg)
Returns

System.Object

Parameters
TypeName
System.ObjectignoreTarget
System.Stringformat
System.Objectarg

useFmt(Object, String, Object, Object)

View Source
Declaration
public object useFmt(object ignoreTarget, string format, object arg1, object arg2)
Returns

System.Object

Parameters
TypeName
System.ObjectignoreTarget
System.Stringformat
System.Objectarg1
System.Objectarg2

useFmt(Object, String, Object, Object, Object)

View Source
Declaration
public object useFmt(object ignoreTarget, string format, object arg1, object arg2, object arg3)
Returns

System.Object

Parameters
TypeName
System.ObjectignoreTarget
System.Stringformat
System.Objectarg1
System.Objectarg2
System.Objectarg3

useFormat(Object, Object, String)

View Source
Declaration
public object useFormat(object ignoreTarget, object arg, string fmt)
Returns

System.Object

Parameters
TypeName
System.ObjectignoreTarget
System.Objectarg
System.Stringfmt

showFmt(Object, String, Object)

View Source
Declaration
public object showFmt(object ignoreTarget, string format, object arg)
Returns

System.Object

Parameters
TypeName
System.ObjectignoreTarget
System.Stringformat
System.Objectarg

showFmt(Object, String, Object, Object)

View Source
Declaration
public object showFmt(object ignoreTarget, string format, object arg1, object arg2)
Returns

System.Object

Parameters
TypeName
System.ObjectignoreTarget
System.Stringformat
System.Objectarg1
System.Objectarg2

showFmt(Object, String, Object, Object, Object)

View Source
Declaration
public object showFmt(object ignoreTarget, string format, object arg1, object arg2, object arg3)
Returns

System.Object

Parameters
TypeName
System.ObjectignoreTarget
System.Stringformat
System.Objectarg1
System.Objectarg2
System.Objectarg3

showFormat(Object, Object, String)

View Source
Declaration
public object showFormat(object ignoreTarget, object arg, string fmt)
Returns

System.Object

Parameters
TypeName
System.ObjectignoreTarget
System.Objectarg
System.Stringfmt

showFmtRaw(Object, String, Object)

View Source
Declaration
public IRawString showFmtRaw(object ignoreTarget, string format, object arg)
Returns

ServiceStack.IRawString

Parameters
TypeName
System.ObjectignoreTarget
System.Stringformat
System.Objectarg

showFmtRaw(Object, String, Object, Object)

View Source
Declaration
public IRawString showFmtRaw(object ignoreTarget, string format, object arg1, object arg2)
Returns

ServiceStack.IRawString

Parameters
TypeName
System.ObjectignoreTarget
System.Stringformat
System.Objectarg1
System.Objectarg2

showFmtRaw(Object, String, Object, Object, Object)

View Source
Declaration
public IRawString showFmtRaw(object ignoreTarget, string format, object arg1, object arg2, object arg3)
Returns

ServiceStack.IRawString

Parameters
TypeName
System.ObjectignoreTarget
System.Stringformat
System.Objectarg1
System.Objectarg2
System.Objectarg3

isString(Object)

View Source
Declaration
public bool isString(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

isInt(Object)

View Source
Declaration
public bool isInt(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

isLong(Object)

View Source
Declaration
public bool isLong(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

isInteger(Object)

View Source
Declaration
public bool isInteger(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

isDouble(Object)

View Source
Declaration
public bool isDouble(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

isFloat(Object)

View Source
Declaration
public bool isFloat(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

isDecimal(Object)

View Source
Declaration
public bool isDecimal(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

isBool(Object)

View Source
Declaration
public bool isBool(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

isList(Object)

View Source
Declaration
public bool isList(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

isEnumerable(Object)

View Source
Declaration
public bool isEnumerable(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

isDictionary(Object)

View Source
Declaration
public bool isDictionary(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

isChar(Object)

View Source
Declaration
public bool isChar(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

isChars(Object)

View Source
Declaration
public bool isChars(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

isByte(Object)

View Source
Declaration
public bool isByte(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

isBytes(Object)

View Source
Declaration
public bool isBytes(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

isObjectDictionary(Object)

View Source
Declaration
public bool isObjectDictionary(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

isStringDictionary(Object)

View Source
Declaration
public bool isStringDictionary(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

isType(Object, String)

View Source
Declaration
public bool isType(object target, string typeName)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget
System.StringtypeName

isNumber(Object)

View Source
Declaration
public bool isNumber(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

isRealNumber(Object)

View Source
Declaration
public bool isRealNumber(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

isEnum(Object)

View Source
Declaration
public bool isEnum(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

isArray(Object)

View Source
Declaration
public bool isArray(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

isAnonObject(Object)

View Source
Declaration
public bool isAnonObject(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

isClass(Object)

View Source
Declaration
public bool isClass(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

isValueType(Object)

View Source
Declaration
public bool isValueType(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

isDto(Object)

View Source
Declaration
public bool isDto(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

isTuple(Object)

View Source
Declaration
public bool isTuple(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

isKeyValuePair(Object)

View Source
Declaration
public bool isKeyValuePair(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

instanceOf(Object, Object)

View Source
Declaration
public bool instanceOf(object target, object type)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget
System.Objecttype

length(Object)

View Source
Declaration
public int length(object target)
Returns

System.Int32

Parameters
TypeName
System.Objecttarget

hasMinCount(Object, Int32)

View Source
Declaration
public bool hasMinCount(object target, int minCount)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget
System.Int32minCount

hasMaxCount(Object, Int32)

View Source
Declaration
public bool hasMaxCount(object target, int maxCount)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget
System.Int32maxCount

OR(Object, Object)

View Source
Declaration
public bool OR(object lhs, object rhs)
Returns

System.Boolean

Parameters
TypeName
System.Objectlhs
System.Objectrhs

AND(Object, Object)

View Source
Declaration
public bool AND(object lhs, object rhs)
Returns

System.Boolean

Parameters
TypeName
System.Objectlhs
System.Objectrhs

equals(Object, Object)

View Source
Declaration
public bool equals(object target, object other)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget
System.Objectother

notEquals(Object, Object)

View Source
Declaration
public bool notEquals(object target, object other)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget
System.Objectother

greaterThan(Object, Object)

View Source
Declaration
public bool greaterThan(object target, object other)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget
System.Objectother

greaterThanEqual(Object, Object)

View Source
Declaration
public bool greaterThanEqual(object target, object other)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget
System.Objectother

lessThan(Object, Object)

View Source
Declaration
public bool lessThan(object target, object other)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget
System.Objectother

lessThanEqual(Object, Object)

View Source
Declaration
public bool lessThanEqual(object target, object other)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget
System.Objectother

not(Boolean)

View Source
Declaration
public bool not(bool target)
Returns

System.Boolean

Parameters
TypeName
System.Booleantarget

eq(Object, Object)

View Source
Declaration
public bool eq(object target, object other)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget
System.Objectother

not(Object, Object)

View Source
Declaration
public bool not(object target, object other)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget
System.Objectother

gt(Object, Object)

View Source
Declaration
public bool gt(object target, object other)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget
System.Objectother

gte(Object, Object)

View Source
Declaration
public bool gte(object target, object other)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget
System.Objectother

lt(Object, Object)

View Source
Declaration
public bool lt(object target, object other)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget
System.Objectother

lte(Object, Object)

View Source
Declaration
public bool lte(object target, object other)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget
System.Objectother

echo(Object)

View Source
Declaration
public object echo(object value)
Returns

System.Object

Parameters
TypeName
System.Objectvalue

pass(String)

View Source
Declaration
public IRawString pass(string target)
Returns

ServiceStack.IRawString

Parameters
TypeName
System.Stringtarget

join(IEnumerable<Object>)

View Source
Declaration
public string join(IEnumerable<object> values)
Returns

System.String

Parameters
TypeName
System.Collections.Generic.IEnumerable<System.Object>values

joinln(IEnumerable<Object>)

View Source
Declaration
public string joinln(IEnumerable<object> values)
Returns

System.String

Parameters
TypeName
System.Collections.Generic.IEnumerable<System.Object>values

join(IEnumerable<Object>, String)

View Source
Declaration
public string join(IEnumerable<object> values, string delimiter)
Returns

System.String

Parameters
TypeName
System.Collections.Generic.IEnumerable<System.Object>values
System.Stringdelimiter

reverse(ScriptScopeContext, IEnumerable<Object>)

View Source
Declaration
public IEnumerable<object> reverse(ScriptScopeContext scope, IEnumerable<object> original)
Returns

System.Collections.Generic.IEnumerable<System.Object>

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Collections.Generic.IEnumerable<System.Object>original

keyValuePair(String, Object)

View Source
Declaration
public KeyValuePair<string, object> keyValuePair(string key, object value)
Returns

System.Collections.Generic.KeyValuePair<System.String,System.Object>

Parameters
TypeName
System.Stringkey
System.Objectvalue

prependTo(ScriptScopeContext, String, Object)

View Source
Declaration
public IgnoreResult prependTo(ScriptScopeContext scope, string value, object argExpr)
Returns

ServiceStack.Script.IgnoreResult

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringvalue
System.ObjectargExpr

prependToGlobal(ScriptScopeContext, String, Object)

View Source
Declaration
public IgnoreResult prependToGlobal(ScriptScopeContext scope, string value, object argExpr)
Returns

ServiceStack.Script.IgnoreResult

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringvalue
System.ObjectargExpr

appendTo(ScriptScopeContext, String, Object)

View Source
Declaration
public IgnoreResult appendTo(ScriptScopeContext scope, string value, object argExpr)
Returns

ServiceStack.Script.IgnoreResult

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringvalue
System.ObjectargExpr

appendToGlobal(ScriptScopeContext, String, Object)

View Source
Declaration
public IgnoreResult appendToGlobal(ScriptScopeContext scope, string value, object argExpr)
Returns

ServiceStack.Script.IgnoreResult

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringvalue
System.ObjectargExpr

addToStart(ScriptScopeContext, Object, Object)

View Source
Declaration
public IgnoreResult addToStart(ScriptScopeContext scope, object value, object argExpr)
Returns

ServiceStack.Script.IgnoreResult

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectvalue
System.ObjectargExpr

addToStartGlobal(ScriptScopeContext, Object, Object)

View Source
Declaration
public IgnoreResult addToStartGlobal(ScriptScopeContext scope, object value, object argExpr)
Returns

ServiceStack.Script.IgnoreResult

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectvalue
System.ObjectargExpr

addTo(ScriptScopeContext, Object, Object)

View Source
Declaration
public IgnoreResult addTo(ScriptScopeContext scope, object value, object argExpr)
Returns

ServiceStack.Script.IgnoreResult

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectvalue
System.ObjectargExpr

addToGlobal(ScriptScopeContext, Object, Object)

View Source
Declaration
public IgnoreResult addToGlobal(ScriptScopeContext scope, object value, object argExpr)
Returns

ServiceStack.Script.IgnoreResult

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectvalue
System.ObjectargExpr

addItem(Object, Object)

View Source
Declaration
public object addItem(object collection, object value)
Returns

System.Object

Parameters
TypeName
System.Objectcollection
System.Objectvalue

putItem(IDictionary, Object, Object)

Puts value in dictionary at key

View Source
Declaration
public object putItem(IDictionary dictionary, object key, object value)
Returns

System.Object: value

Parameters
TypeName
System.Collections.IDictionarydictionary
System.Objectkey
System.Objectvalue

resolveArg(ScriptScopeContext, String)

View Source
Declaration
public object resolveArg(ScriptScopeContext scope, string name)
Returns

System.Object

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringname

resolveGlobal(ScriptScopeContext, String)

View Source
Declaration
public object resolveGlobal(ScriptScopeContext scope, string name)
Returns

System.Object

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringname

resolvePageArg(ScriptScopeContext, String)

View Source
Declaration
public object resolvePageArg(ScriptScopeContext scope, string name)
Returns

System.Object

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringname

resolveContextArg(ScriptScopeContext, String)

View Source
Declaration
public object resolveContextArg(ScriptScopeContext scope, string name)
Returns

System.Object

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringname

assign(ScriptScopeContext, String, Object)

View Source
Declaration
public object assign(ScriptScopeContext scope, string argExpr, object value)
Returns

System.Object

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.StringargExpr
System.Objectvalue

assignGlobal(ScriptScopeContext, String, Object)

View Source
Declaration
public object assignGlobal(ScriptScopeContext scope, string argExpr, object value)
Returns

System.Object

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.StringargExpr
System.Objectvalue

to(ScriptScopeContext, Object, Object)

View Source
Declaration
public IgnoreResult to(ScriptScopeContext scope, object value, object argExpr)
Returns

ServiceStack.Script.IgnoreResult

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectvalue
System.ObjectargExpr

assignTo(ScriptScopeContext, Object, Object)

View Source
Declaration
public IgnoreResult assignTo(ScriptScopeContext scope, object value, object argExpr)
Returns

ServiceStack.Script.IgnoreResult

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectvalue
System.ObjectargExpr

toGlobal(ScriptScopeContext, Object, Object)

View Source
Declaration
public IgnoreResult toGlobal(ScriptScopeContext scope, object value, object argExpr)
Returns

ServiceStack.Script.IgnoreResult

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectvalue
System.ObjectargExpr

assignToGlobal(ScriptScopeContext, Object, Object)

View Source
Declaration
public IgnoreResult assignToGlobal(ScriptScopeContext scope, object value, object argExpr)
Returns

ServiceStack.Script.IgnoreResult

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectvalue
System.ObjectargExpr

to(ScriptScopeContext, Object)

View Source
Declaration
public Task to(ScriptScopeContext scope, object argExpr)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.ObjectargExpr

assignTo(ScriptScopeContext, Object)

View Source
Declaration
public Task assignTo(ScriptScopeContext scope, object argExpr)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.ObjectargExpr

toGlobal(ScriptScopeContext, Object)

View Source
Declaration
public Task toGlobal(ScriptScopeContext scope, object argExpr)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.ObjectargExpr

assignToGlobal(ScriptScopeContext, Object)

View Source
Declaration
public Task assignToGlobal(ScriptScopeContext scope, object argExpr)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.ObjectargExpr

GetVarNameFromStringOrArrowExpression(String, Object)

View Source
Declaration
public static string GetVarNameFromStringOrArrowExpression(string filterName, object argExpr)
Returns

System.String

Parameters
TypeName
System.StringfilterName
System.ObjectargExpr

buffer(ScriptScopeContext, Object)

View Source
Declaration
public Task buffer(ScriptScopeContext scope, object target)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget

partial(ScriptScopeContext, Object)

View Source
Declaration
public Task partial(ScriptScopeContext scope, object target)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget

partial(ScriptScopeContext, Object, Object)

View Source
Declaration
public async Task partial(ScriptScopeContext scope, object target, object scopedParams)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.ObjectscopedParams

selectEach(ScriptScopeContext, Object, Object)

View Source
Declaration
public Task selectEach(ScriptScopeContext scope, object target, object items)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectitems

selectEach(ScriptScopeContext, Object, Object, Object)

View Source
Declaration
public async Task selectEach(ScriptScopeContext scope, object target, object items, object scopeOptions)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectitems
System.ObjectscopeOptions

toString(Object)

View Source
Declaration
public string toString(object target)
Returns

System.String

Parameters
TypeName
System.Objecttarget

asString(Object)

View Source
Declaration
public string asString(object target)
Returns

System.String

Parameters
TypeName
System.Objecttarget

toList(IEnumerable)

View Source
Declaration
public List<object> toList(IEnumerable target)
Returns

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

Parameters
TypeName
System.Collections.IEnumerabletarget

toStringList(IEnumerable)

View Source
Declaration
public List<string> toStringList(IEnumerable target)
Returns

System.Collections.Generic.List<System.String>

Parameters
TypeName
System.Collections.IEnumerabletarget

toArray(IEnumerable)

View Source
Declaration
public object[] toArray(IEnumerable target)
Returns

System.Object[]

Parameters
TypeName
System.Collections.IEnumerabletarget

fromCharCode(Int32)

View Source
Declaration
public char fromCharCode(int charCode)
Returns

System.Char

Parameters
TypeName
System.Int32charCode

toChar(Object)

View Source
Declaration
public char toChar(object target)
Returns

System.Char

Parameters
TypeName
System.Objecttarget

toChars(Object)

View Source
Declaration
public char[] toChars(object target)
Returns

System.Char[]

Parameters
TypeName
System.Objecttarget

toCharCode(Object)

View Source
Declaration
public int toCharCode(object target)
Returns

System.Int32

Parameters
TypeName
System.Objecttarget

toUtf8Bytes(String)

View Source
Declaration
public byte[] toUtf8Bytes(string target)
Returns

System.Byte[]

Parameters
TypeName
System.Stringtarget

fromUtf8Bytes(Byte[])

View Source
Declaration
public string fromUtf8Bytes(byte[] target)
Returns

System.String

Parameters
TypeName
System.Byte[]target

toByte(Object)

View Source
Declaration
public byte toByte(object target)
Returns

System.Byte

Parameters
TypeName
System.Objecttarget

toInt(Object)

View Source
Declaration
public int toInt(object target)
Returns

System.Int32

Parameters
TypeName
System.Objecttarget

toLong(Object)

View Source
Declaration
public long toLong(object target)
Returns

System.Int64

Parameters
TypeName
System.Objecttarget

toFloat(Object)

View Source
Declaration
public float toFloat(object target)
Returns

System.Single

Parameters
TypeName
System.Objecttarget

toDouble(Object)

View Source
Declaration
public double toDouble(object target)
Returns

System.Double

Parameters
TypeName
System.Objecttarget

toDecimal(Object)

View Source
Declaration
public decimal toDecimal(object target)
Returns

System.Decimal

Parameters
TypeName
System.Objecttarget

toBool(Object)

View Source
Declaration
public bool toBool(object target)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget

toDateTime(Object)

View Source
Declaration
public DateTime toDateTime(object target)
Returns

System.DateTime

Parameters
TypeName
System.Objecttarget

date(Int32, Int32, Int32)

View Source
Declaration
public DateTime date(int year, int month, int day)
Returns

System.DateTime

Parameters
TypeName
System.Int32year
System.Int32month
System.Int32day

date(Int32, Int32, Int32, Int32, Int32, Int32)

View Source
Declaration
public DateTime date(int year, int month, int day, int hour, int min, int secs)
Returns

System.DateTime

Parameters
TypeName
System.Int32year
System.Int32month
System.Int32day
System.Int32hour
System.Int32min
System.Int32secs

toTimeSpan(Object)

View Source
Declaration
public TimeSpan toTimeSpan(object target)
Returns

System.TimeSpan

Parameters
TypeName
System.Objecttarget

time(Int32, Int32, Int32)

View Source
Declaration
public TimeSpan time(int hours, int mins, int secs)
Returns

System.TimeSpan

Parameters
TypeName
System.Int32hours
System.Int32mins
System.Int32secs

time(Int32, Int32, Int32, Int32)

View Source
Declaration
public TimeSpan time(int days, int hours, int mins, int secs)
Returns

System.TimeSpan

Parameters
TypeName
System.Int32days
System.Int32hours
System.Int32mins
System.Int32secs

pair(String, Object)

View Source
Declaration
public KeyValuePair<string, object> pair(string key, object value)
Returns

System.Collections.Generic.KeyValuePair<System.String,System.Object>

Parameters
TypeName
System.Stringkey
System.Objectvalue

toKeys(Object)

View Source
Declaration
public List<string> toKeys(object target)
Returns

System.Collections.Generic.List<System.String>

Parameters
TypeName
System.Objecttarget

toValues(Object)

View Source
Declaration
public List<object> toValues(object target)
Returns

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

Parameters
TypeName
System.Objecttarget

toObjectDictionary(Object)

View Source
Declaration
public Dictionary<string, object> toObjectDictionary(object target)
Returns

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

Parameters
TypeName
System.Objecttarget

toStringDictionary(IDictionary)

View Source
Declaration
public Dictionary<string, string> toStringDictionary(IDictionary map)
Returns

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

Parameters
TypeName
System.Collections.IDictionarymap

splitStringList(IEnumerable)

View Source
Declaration
public List<string> splitStringList(IEnumerable strings)
Returns

System.Collections.Generic.List<System.String>

Parameters
TypeName
System.Collections.IEnumerablestrings

toVarNames(IEnumerable)

View Source
Declaration
public List<string> toVarNames(IEnumerable names)
Returns

System.Collections.Generic.List<System.String>

Parameters
TypeName
System.Collections.IEnumerablenames

AssertWithinMaxQuota(Int32)

View Source
Declaration
public int AssertWithinMaxQuota(int value)
Returns

System.Int32

Parameters
TypeName
System.Int32value

toDictionary(ScriptScopeContext, Object, Object)

View Source
Declaration
public Dictionary<object, object> toDictionary(ScriptScopeContext scope, object target, object expression)
Returns

System.Collections.Generic.Dictionary<System.Object,System.Object>

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

toDictionary(ScriptScopeContext, Object, Object, Object)

View Source
Declaration
public Dictionary<object, object> toDictionary(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns

System.Collections.Generic.Dictionary<System.Object,System.Object>

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression
System.ObjectscopeOptions

typeName(Object)

View Source
Declaration
public IRawString typeName(object target)
Returns

ServiceStack.IRawString

Parameters
TypeName
System.Objecttarget

typeFullName(Object)

View Source
Declaration
public IRawString typeFullName(object target)
Returns

ServiceStack.IRawString

Parameters
TypeName
System.Objecttarget

of(ScriptScopeContext, IEnumerable, Object)

View Source
Declaration
public IEnumerable of(ScriptScopeContext scope, IEnumerable target, object scopeOptions)
Returns

System.Collections.IEnumerable

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Collections.IEnumerabletarget
System.ObjectscopeOptions

do(ScriptScopeContext, Object)

View Source
Declaration
public object do(ScriptScopeContext scope, object expression)
Returns

System.Object

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectexpression

do(ScriptScopeContext, Object, Object)

View Source
Declaration
public Task do(ScriptScopeContext scope, object target, object expression)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

do(ScriptScopeContext, Object, Object, Object)

View Source
Declaration
public Task do(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression
System.ObjectscopeOptions

props(Object)

View Source
Declaration
public List<string> props(object o)
Returns

System.Collections.Generic.List<System.String>

Parameters
TypeName
System.Objecto

propTypes(Object)

View Source
Declaration
public PropertyInfo[] propTypes(object o)
Returns

System.Reflection.PropertyInfo[]

Parameters
TypeName
System.Objecto

staticProps(Object)

View Source
Declaration
public List<string> staticProps(object o)
Returns

System.Collections.Generic.List<System.String>

Parameters
TypeName
System.Objecto

staticPropTypes(Object)

View Source
Declaration
public PropertyInfo[] staticPropTypes(object o)
Returns

System.Reflection.PropertyInfo[]

Parameters
TypeName
System.Objecto

fields(Object)

View Source
Declaration
public List<string> fields(object o)
Returns

System.Collections.Generic.List<System.String>

Parameters
TypeName
System.Objecto

fieldTypes(Object)

View Source
Declaration
public FieldInfo[] fieldTypes(object o)
Returns

System.Reflection.FieldInfo[]

Parameters
TypeName
System.Objecto

staticFields(Object)

View Source
Declaration
public List<string> staticFields(object o)
Returns

System.Collections.Generic.List<System.String>

Parameters
TypeName
System.Objecto

staticFieldTypes(Object)

View Source
Declaration
public FieldInfo[] staticFieldTypes(object o)
Returns

System.Reflection.FieldInfo[]

Parameters
TypeName
System.Objecto

property(Object, String)

View Source
Declaration
public object property(object target, string propertyName)
Returns

System.Object

Parameters
TypeName
System.Objecttarget
System.StringpropertyName

field(Object, String)

View Source
Declaration
public object field(object target, string fieldName)
Returns

System.Object

Parameters
TypeName
System.Objecttarget
System.StringfieldName

map(ScriptScopeContext, Object, Object)

View Source
Declaration
public object map(ScriptScopeContext scope, object items, object expression)
Returns

System.Object

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectitems
System.Objectexpression

map(ScriptScopeContext, Object, Object, Object)

View Source
Declaration
public object map(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns

System.Object

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression
System.ObjectscopeOptions

scopeVars(Object)

View Source
Declaration
public object scopeVars(object target)
Returns

System.Object

Parameters
TypeName
System.Objecttarget

selectFields(Object, Object)

View Source
Declaration
public object selectFields(object target, object names)
Returns

System.Object

Parameters
TypeName
System.Objecttarget
System.Objectnames

select(ScriptScopeContext, Object, Object)

View Source
Declaration
public Task select(ScriptScopeContext scope, object target, object selectTemplate)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.ObjectselectTemplate

select(ScriptScopeContext, Object, Object, Object)

View Source
Declaration
public async Task select(ScriptScopeContext scope, object target, object selectTemplate, object scopeOptions)