DefaultScripts
Assembly: ServiceStack.Common.dll
Declaration
public class DefaultScripts : ScriptMethods, IConfigureScriptContext
Properties
RemoveNewLinesFor
Declaration
public static List<string> RemoveNewLinesFor { get; }
Inherited Properties
Context
Declaration
public ScriptContext Context { get; set; }
InvokerCache
Declaration
public ConcurrentDictionary<string, MethodInvoker> InvokerCache { get; }
Pages
Declaration
public ISharpPages Pages { get; set; }
Fields
Instance
Declaration
public static readonly DefaultScripts Instance
EvaluateWhenSkippingFilterExecution
Declaration
public static List<string> EvaluateWhenSkippingFilterExecution
XssFragments
Declaration
public static string[] XssFragments
Methods
push(IList, Object)
Declaration
public int push(IList list, object item)
Returns
System.Int32
Parameters
Type | Name |
---|
System.Collections.IList | list |
System.Object | item |
pop(IList)
Declaration
public object pop(IList list)
Returns
System.Object
Parameters
Type | Name |
---|
System.Collections.IList | list |
shift(IList)
Declaration
public object shift(IList list)
Returns
System.Object
Parameters
Type | Name |
---|
System.Collections.IList | list |
unshift(IList, Object)
Declaration
public object unshift(IList list, object item)
Returns
System.Object
Parameters
Type | Name |
---|
System.Collections.IList | list |
System.Object | item |
indexOf(Object, Object)
Declaration
public int indexOf(object target, object item)
Returns
System.Int32
Parameters
Type | Name |
---|
System.Object | target |
System.Object | item |
indexOf(Object, Object, Int32)
Declaration
public int indexOf(object target, object item, int startIndex)
Returns
System.Int32
Parameters
Type | Name |
---|
System.Object | target |
System.Object | item |
System.Int32 | startIndex |
lastIndexOf(Object, Object)
Declaration
public int lastIndexOf(object target, object item)
Returns
System.Int32
Parameters
Type | Name |
---|
System.Object | target |
System.Object | item |
lastIndexOf(Object, Object, Int32)
Declaration
public int lastIndexOf(object target, object item, int startIndex)
Returns
System.Int32
Parameters
Type | Name |
---|
System.Object | target |
System.Object | item |
System.Int32 | startIndex |
splice(IList, Int32)
Declaration
public object splice(IList list, int removeAt)
Returns
System.Object
Parameters
Type | Name |
---|
System.Collections.IList | list |
System.Int32 | removeAt |
splice(IList, Int32, Int32)
Declaration
public List<object> splice(IList list, int removeAt, int deleteCount)
Returns
System.Collections.Generic.List<System.Object>
Parameters
Type | Name |
---|
System.Collections.IList | list |
System.Int32 | removeAt |
System.Int32 | deleteCount |
splice(IList, Int32, Int32, List<Object>)
Declaration
public List<object> splice(IList list, int removeAt, int deleteCount, List<object> insertItems)
Returns
System.Collections.Generic.List<System.Object>
Parameters
Type | Name |
---|
System.Collections.IList | list |
System.Int32 | removeAt |
System.Int32 | deleteCount |
System.Collections.Generic.List<System.Object> | insertItems |
slice(IList)
Declaration
public List<object> slice(IList list)
Returns
System.Collections.Generic.List<System.Object>
Parameters
Type | Name |
---|
System.Collections.IList | list |
slice(IList, Int32)
Declaration
public List<object> slice(IList list, int begin)
Returns
System.Collections.Generic.List<System.Object>
Parameters
Type | Name |
---|
System.Collections.IList | list |
System.Int32 | begin |
slice(IList, Int32, Int32)
Declaration
public List<object> slice(IList list, int begin, int end)
Returns
System.Collections.Generic.List<System.Object>
Parameters
Type | Name |
---|
System.Collections.IList | list |
System.Int32 | begin |
System.Int32 | end |
forEach(ScriptScopeContext, Object, JsArrowFunctionExpression)
Declaration
public IgnoreResult forEach(ScriptScopeContext scope, object target, JsArrowFunctionExpression arrowExpr)
Returns
ServiceStack.Script.IgnoreResult
Parameters
every(ScriptScopeContext, IList, JsArrowFunctionExpression)
Declaration
public bool every(ScriptScopeContext scope, IList list, JsArrowFunctionExpression expression)
Returns
System.Boolean
Parameters
some(ScriptScopeContext, IList, JsArrowFunctionExpression)
Declaration
public bool some(ScriptScopeContext scope, IList list, JsArrowFunctionExpression expression)
Returns
System.Boolean
Parameters
find(ScriptScopeContext, IList, JsArrowFunctionExpression)
Declaration
public object find(ScriptScopeContext scope, IList list, JsArrowFunctionExpression expression)
Returns
System.Object
Parameters
findIndex(ScriptScopeContext, IList, JsArrowFunctionExpression)
Declaration
public int findIndex(ScriptScopeContext scope, IList list, JsArrowFunctionExpression expression)
Returns
System.Int32
Parameters
filter(ScriptScopeContext, IList, JsArrowFunctionExpression)
Declaration
public List<object> filter(ScriptScopeContext scope, IList list, JsArrowFunctionExpression expression)
Returns
System.Collections.Generic.List<System.Object>
Parameters
flat(IList)
Declaration
public List<object> flat(IList list)
Returns
System.Collections.Generic.List<System.Object>
Parameters
Type | Name |
---|
System.Collections.IList | list |
flat(IList, Int32)
Declaration
public List<object> flat(IList list, int depth)
Returns
System.Collections.Generic.List<System.Object>
Parameters
Type | Name |
---|
System.Collections.IList | list |
System.Int32 | depth |
flatMap(ScriptScopeContext, IList, JsArrowFunctionExpression)
Declaration
public List<object> flatMap(ScriptScopeContext scope, IList list, JsArrowFunctionExpression expression)
Returns
System.Collections.Generic.List<System.Object>
Parameters
flatMap(ScriptScopeContext, IList, JsArrowFunctionExpression, Int32)
Declaration
public List<object> flatMap(ScriptScopeContext scope, IList list, JsArrowFunctionExpression expression, int depth)
Returns
System.Collections.Generic.List<System.Object>
Parameters
includes(IList, Object)
Declaration
public bool includes(IList list, object item)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Collections.IList | list |
System.Object | item |
includes(IList, Object, Int32)
Declaration
public bool includes(IList list, object item, int fromIndex)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Collections.IList | list |
System.Object | item |
System.Int32 | fromIndex |
sort(List<Object>)
Declaration
public List<object> sort(List<object> list)
Returns
System.Collections.Generic.List<System.Object>
Parameters
Type | Name |
---|
System.Collections.Generic.List<System.Object> | list |
Configure(ScriptContext)
Declaration
public void Configure(ScriptContext context)
Parameters
now()
Returns
System.DateTime
utcNow()
Returns
System.DateTime
nowOffset()
Declaration
public DateTimeOffset nowOffset()
Returns
System.DateTimeOffset
utcNowOffset()
Declaration
public DateTimeOffset utcNowOffset()
Returns
System.DateTimeOffset
nguid()
Returns
System.Guid
addTicks(DateTime, Int32)
Declaration
public DateTime addTicks(DateTime target, int count)
Returns
System.DateTime
Parameters
Type | Name |
---|
System.DateTime | target |
System.Int32 | count |
addMilliseconds(DateTime, Int32)
Declaration
public DateTime addMilliseconds(DateTime target, int count)
Returns
System.DateTime
Parameters
Type | Name |
---|
System.DateTime | target |
System.Int32 | count |
addSeconds(DateTime, Int32)
Declaration
public DateTime addSeconds(DateTime target, int count)
Returns
System.DateTime
Parameters
Type | Name |
---|
System.DateTime | target |
System.Int32 | count |
addMinutes(DateTime, Int32)
Declaration
public DateTime addMinutes(DateTime target, int count)
Returns
System.DateTime
Parameters
Type | Name |
---|
System.DateTime | target |
System.Int32 | count |
addHours(DateTime, Int32)
Declaration
public DateTime addHours(DateTime target, int count)
Returns
System.DateTime
Parameters
Type | Name |
---|
System.DateTime | target |
System.Int32 | count |
addDays(DateTime, Int32)
Declaration
public DateTime addDays(DateTime target, int count)
Returns
System.DateTime
Parameters
Type | Name |
---|
System.DateTime | target |
System.Int32 | count |
addMonths(DateTime, Int32)
Declaration
public DateTime addMonths(DateTime target, int count)
Returns
System.DateTime
Parameters
Type | Name |
---|
System.DateTime | target |
System.Int32 | count |
addYears(DateTime, Int32)
Declaration
public DateTime addYears(DateTime target, int count)
Returns
System.DateTime
Parameters
Type | Name |
---|
System.DateTime | target |
System.Int32 | count |
itemsOf(Int32, Object)
Declaration
public List<object> itemsOf(int count, object target)
Returns
System.Collections.Generic.List<System.Object>
Parameters
Type | Name |
---|
System.Int32 | count |
System.Object | target |
times(Int32)
Declaration
public List<int> times(int count)
Returns
System.Collections.Generic.List<System.Int32>
Parameters
Type | Name |
---|
System.Int32 | count |
range(Int32)
Declaration
public IEnumerable<int> range(int count)
Returns
System.Collections.Generic.IEnumerable<System.Int32>
Parameters
Type | Name |
---|
System.Int32 | count |
range(Int32, Int32)
Declaration
public IEnumerable<int> range(int start, int count)
Returns
System.Collections.Generic.IEnumerable<System.Int32>
Parameters
Type | Name |
---|
System.Int32 | start |
System.Int32 | count |
isEven(Int32)
Declaration
public bool isEven(int value)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Int32 | value |
isOdd(Int32)
Declaration
public bool isOdd(int value)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Int32 | value |
isTrue(Object)
Declaration
public static bool isTrue(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isTruthy(Object)
Declaration
public static bool isTruthy(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isFalsy(Object)
Declaration
public static bool isFalsy(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
iif(Object, Object, Object)
Declaration
public object iif(object test, object ifTrue, object ifFalse)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | test |
System.Object | ifTrue |
System.Object | ifFalse |
when(Object, Object)
Declaration
public object when(object returnTarget, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | test |
ifNot(Object, Object)
Declaration
public object ifNot(object returnTarget, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | test |
unless(Object, Object)
Declaration
public object unless(object returnTarget, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | test |
otherwise(Object, Object)
Declaration
public object otherwise(object returnTarget, object elseReturn)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | elseReturn |
ifElse(Object, Object, Object)
Declaration
public object ifElse(object returnTarget, object test, object defaultValue)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | test |
System.Object | defaultValue |
ifNotElse(Object, Object, Object)
Declaration
public object ifNotElse(object returnTarget, object test, object defaultValue)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | test |
System.Object | defaultValue |
unlessElse(Object, Object, Object)
Declaration
public object unlessElse(object returnTarget, object test, object defaultValue)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | test |
System.Object | defaultValue |
ifFalsy(Object, Object)
Declaration
public object ifFalsy(object returnTarget, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | test |
ifTruthy(Object, Object)
Declaration
public object ifTruthy(object returnTarget, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | test |
falsy(Object, Object)
Declaration
public object falsy(object test, object returnIfFalsy)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | test |
System.Object | returnIfFalsy |
truthy(Object, Object)
Declaration
public object truthy(object test, object returnIfTruthy)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | test |
System.Object | returnIfTruthy |
isNull(Object)
Declaration
public bool isNull(object test)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | test |
isNotNull(Object)
Declaration
public bool isNotNull(object test)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | test |
exists(Object)
Declaration
public bool exists(object test)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | test |
isZero(Double)
Declaration
public bool isZero(double value)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Double | value |
isPositive(Double)
Declaration
public bool isPositive(double value)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Double | value |
isNegative(Double)
Declaration
public bool isNegative(double value)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Double | value |
isNaN(Double)
Declaration
public bool isNaN(double value)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Double | value |
isInfinity(Double)
Declaration
public bool isInfinity(double value)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Double | value |
ifExists(Object)
Declaration
public object ifExists(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
ifExists(Object, Object)
Declaration
public object ifExists(object returnTarget, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | test |
ifNotExists(Object, Object)
Declaration
public object ifNotExists(object returnTarget, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | test |
ifNo(Object, Object)
Declaration
public object ifNo(object returnTarget, object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | target |
ifNotEmpty(Object)
Declaration
public object ifNotEmpty(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
ifNotEmpty(Object, Object)
Declaration
public object ifNotEmpty(object returnTarget, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | test |
ifEmpty(Object, Object)
Declaration
public object ifEmpty(object returnTarget, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | test |
ifTrue(Object, Object)
Declaration
public object ifTrue(object returnTarget, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | test |
ifFalse(Object, Object)
Declaration
public object ifFalse(object returnTarget, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | test |
isEmpty(Object)
Declaration
public bool isEmpty(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
IsNullOrWhiteSpace(Object)
Declaration
public bool IsNullOrWhiteSpace(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
Declaration
public bool isEnum(Enum source, object value)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Enum | source |
System.Object | value |
hasFlag(Enum, Object)
Declaration
public bool hasFlag(Enum source, object value)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Enum | source |
System.Object | value |
end()
Declaration
public StopExecution end()
Returns
ServiceStack.Script.StopExecution
end(ScriptScopeContext, Object)
Declaration
public Task end(ScriptScopeContext scope, object ignore)
Returns
System.Threading.Tasks.Task
Parameters
end(Object)
Declaration
public StopExecution end(object ignore)
Returns
ServiceStack.Script.StopExecution
Parameters
Type | Name |
---|
System.Object | ignore |
endIfNull(Object)
Declaration
public object endIfNull(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
endIfNull(Object, Object)
Declaration
public object endIfNull(object ignoreTarget, object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | target |
endIfNotNull(Object)
Declaration
public object endIfNotNull(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
endIfNotNull(Object, Object)
Declaration
public object endIfNotNull(object ignoreTarget, object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | target |
endIfExists(Object)
Declaration
public object endIfExists(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
endIfExists(Object, Object)
Declaration
public object endIfExists(object ignoreTarget, object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | target |
endIfEmpty(Object)
Declaration
public object endIfEmpty(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
endIfEmpty(Object, Object)
Declaration
public object endIfEmpty(object ignoreTarget, object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | target |
endIfNotEmpty(Object)
Declaration
public object endIfNotEmpty(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
endIfNotEmpty(Object, Object)
Declaration
public object endIfNotEmpty(object ignoreTarget, object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | target |
endIfFalsy(Object)
Declaration
public object endIfFalsy(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
endIfFalsy(Object, Object)
Declaration
public object endIfFalsy(object ignoreTarget, object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | target |
endIfTruthy(Object)
Declaration
public object endIfTruthy(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
endIfTruthy(Object, Object)
Declaration
public object endIfTruthy(object ignoreTarget, object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | target |
endIf(Object)
Declaration
public object endIf(object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | test |
endIf(Object, Boolean)
Declaration
public object endIf(object returnTarget, bool test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Boolean | test |
endIfAny(ScriptScopeContext, Object, Object)
Declaration
public object endIfAny(ScriptScopeContext scope, object target, object expression)
Returns
System.Object
Parameters
endIfAll(ScriptScopeContext, Object, Object)
Declaration
public object endIfAll(ScriptScopeContext scope, object target, object expression)
Returns
System.Object
Parameters
endWhere(ScriptScopeContext, Object, Object)
Declaration
public object endWhere(ScriptScopeContext scope, object target, object expression)
Returns
System.Object
Parameters
endWhere(ScriptScopeContext, Object, Object, Object)
Declaration
public object endWhere(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns
System.Object
Parameters
ifEnd(Boolean)
Declaration
public object ifEnd(bool test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Boolean | test |
ifEnd(Object, Boolean)
Declaration
public object ifEnd(object ignoreTarget, bool test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Boolean | test |
ifNotEnd(Boolean)
Declaration
public object ifNotEnd(bool test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Boolean | test |
ifNotEnd(Object, Boolean)
Declaration
public object ifNotEnd(object ignoreTarget, bool test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Boolean | test |
onlyIfNull(Object)
Declaration
public object onlyIfNull(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
onlyIfNull(Object, Object)
Declaration
public object onlyIfNull(object ignoreTarget, object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | target |
onlyIfNotNull(Object)
Declaration
public object onlyIfNotNull(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
onlyIfNotNull(Object, Object)
Declaration
public object onlyIfNotNull(object ignoreTarget, object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | target |
onlyIfExists(Object)
Declaration
public object onlyIfExists(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
onlyIfExists(Object, Object)
Declaration
public object onlyIfExists(object ignoreTarget, object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | target |
onlyIfEmpty(Object)
Declaration
public object onlyIfEmpty(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
onlyIfEmpty(Object, Object)
Declaration
public object onlyIfEmpty(object ignoreTarget, object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | target |
onlyIfNotEmpty(Object)
Declaration
public object onlyIfNotEmpty(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
onlyIfNotEmpty(Object, Object)
Declaration
public object onlyIfNotEmpty(object ignoreTarget, object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | target |
onlyIfFalsy(Object)
Declaration
public object onlyIfFalsy(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
onlyIfFalsy(Object, Object)
Declaration
public object onlyIfFalsy(object ignoreTarget, object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | target |
onlyIfTruthy(Object)
Declaration
public object onlyIfTruthy(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
onlyIfTruthy(Object, Object)
Declaration
public object onlyIfTruthy(object ignoreTarget, object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | target |
onlyIf(Object)
Declaration
public object onlyIf(object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | test |
onlyIf(Object, Boolean)
Declaration
public object onlyIf(object returnTarget, bool test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Boolean | test |
onlyIfAny(ScriptScopeContext, Object, Object)
Declaration
public object onlyIfAny(ScriptScopeContext scope, object target, object expression)
Returns
System.Object
Parameters
onlyIfAll(ScriptScopeContext, Object, Object)
Declaration
public object onlyIfAll(ScriptScopeContext scope, object target, object expression)
Returns
System.Object
Parameters
onlyWhere(ScriptScopeContext, Object, Object)
Declaration
public object onlyWhere(ScriptScopeContext scope, object target, object expression)
Returns
System.Object
Parameters
onlyIfDebug(Object)
Declaration
public object onlyIfDebug(object returnTarget)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
endIfDebug(Object)
Declaration
public object endIfDebug(object returnTarget)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
onlyWhere(ScriptScopeContext, Object, Object, Object)
Declaration
public object onlyWhere(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns
System.Object
Parameters
ifOnly(Boolean)
Declaration
public object ifOnly(bool test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Boolean | test |
ifOnly(Object, Boolean)
Declaration
public object ifOnly(object ignoreTarget, bool test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Boolean | test |
ifNotOnly(Boolean)
Declaration
public object ifNotOnly(bool test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Boolean | test |
ifNotOnly(Object, Boolean)
Declaration
public object ifNotOnly(object ignoreTarget, bool test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Boolean | test |
ifDo(Object)
Declaration
public object ifDo(object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | test |
ifDo(Object, Object)
Declaration
public object ifDo(object ignoreTarget, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | test |
doIf(Object)
Declaration
public object doIf(object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | test |
doIf(Object, Object)
Declaration
public object doIf(object ignoreTarget, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | test |
ifUse(Object, Object)
Declaration
public object ifUse(object test, object useValue)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | test |
System.Object | useValue |
ifShow(Object, Object)
Declaration
public object ifShow(object test, object useValue)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | test |
System.Object | useValue |
ifShowRaw(Object, Object)
Declaration
public object ifShowRaw(object test, object useValue)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | test |
System.Object | useValue |
useIf(Object, Object)
Declaration
public object useIf(object useValue, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | useValue |
System.Object | test |
showIf(Object, Object)
Declaration
public object showIf(object useValue, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | useValue |
System.Object | test |
showIfExists(Object, Object)
Declaration
public object showIfExists(object useValue, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | useValue |
System.Object | test |
use(Object, Object)
Declaration
public object use(object ignoreTarget, object useValue)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | useValue |
show(Object, Object)
Declaration
public object show(object ignoreTarget, object useValue)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | useValue |
showRaw(Object, String)
Declaration
public IRawString showRaw(object ignoreTarget, string content)
Returns
ServiceStack.IRawString
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.String | content |
useFmt(Object, String, Object)
Declaration
public object useFmt(object ignoreTarget, string format, object arg)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.String | format |
System.Object | arg |
useFmt(Object, String, Object, Object)
Declaration
public object useFmt(object ignoreTarget, string format, object arg1, object arg2)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.String | format |
System.Object | arg1 |
System.Object | arg2 |
useFmt(Object, String, Object, Object, Object)
Declaration
public object useFmt(object ignoreTarget, string format, object arg1, object arg2, object arg3)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.String | format |
System.Object | arg1 |
System.Object | arg2 |
System.Object | arg3 |
Declaration
public object useFormat(object ignoreTarget, object arg, string fmt)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | arg |
System.String | fmt |
showFmt(Object, String, Object)
Declaration
public object showFmt(object ignoreTarget, string format, object arg)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.String | format |
System.Object | arg |
showFmt(Object, String, Object, Object)
Declaration
public object showFmt(object ignoreTarget, string format, object arg1, object arg2)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.String | format |
System.Object | arg1 |
System.Object | arg2 |
showFmt(Object, String, Object, Object, Object)
Declaration
public object showFmt(object ignoreTarget, string format, object arg1, object arg2, object arg3)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.String | format |
System.Object | arg1 |
System.Object | arg2 |
System.Object | arg3 |
Declaration
public object showFormat(object ignoreTarget, object arg, string fmt)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | arg |
System.String | fmt |
showFmtRaw(Object, String, Object)
Declaration
public IRawString showFmtRaw(object ignoreTarget, string format, object arg)
Returns
ServiceStack.IRawString
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.String | format |
System.Object | arg |
showFmtRaw(Object, String, Object, Object)
Declaration
public IRawString showFmtRaw(object ignoreTarget, string format, object arg1, object arg2)
Returns
ServiceStack.IRawString
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.String | format |
System.Object | arg1 |
System.Object | arg2 |
showFmtRaw(Object, String, Object, Object, Object)
Declaration
public IRawString showFmtRaw(object ignoreTarget, string format, object arg1, object arg2, object arg3)
Returns
ServiceStack.IRawString
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.String | format |
System.Object | arg1 |
System.Object | arg2 |
System.Object | arg3 |
isString(Object)
Declaration
public bool isString(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isInt(Object)
Declaration
public bool isInt(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isLong(Object)
Declaration
public bool isLong(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isInteger(Object)
Declaration
public bool isInteger(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isDouble(Object)
Declaration
public bool isDouble(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isFloat(Object)
Declaration
public bool isFloat(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isDecimal(Object)
Declaration
public bool isDecimal(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isBool(Object)
Declaration
public bool isBool(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isList(Object)
Declaration
public bool isList(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isEnumerable(Object)
Declaration
public bool isEnumerable(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isDictionary(Object)
Declaration
public bool isDictionary(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isChar(Object)
Declaration
public bool isChar(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isChars(Object)
Declaration
public bool isChars(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isByte(Object)
Declaration
public bool isByte(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isBytes(Object)
Declaration
public bool isBytes(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isObjectDictionary(Object)
Declaration
public bool isObjectDictionary(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isStringDictionary(Object)
Declaration
public bool isStringDictionary(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isType(Object, String)
Declaration
public bool isType(object target, string typeName)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.String | typeName |
isNumber(Object)
Declaration
public bool isNumber(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isRealNumber(Object)
Declaration
public bool isRealNumber(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isEnum(Object)
Declaration
public bool isEnum(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isArray(Object)
Declaration
public bool isArray(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isAnonObject(Object)
Declaration
public bool isAnonObject(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isClass(Object)
Declaration
public bool isClass(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isValueType(Object)
Declaration
public bool isValueType(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isDto(Object)
Declaration
public bool isDto(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isTuple(Object)
Declaration
public bool isTuple(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isKeyValuePair(Object)
Declaration
public bool isKeyValuePair(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
instanceOf(Object, Object)
Declaration
public bool instanceOf(object target, object type)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.Object | type |
length(Object)
Declaration
public int length(object target)
Returns
System.Int32
Parameters
Type | Name |
---|
System.Object | target |
hasMinCount(Object, Int32)
Declaration
public bool hasMinCount(object target, int minCount)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.Int32 | minCount |
hasMaxCount(Object, Int32)
Declaration
public bool hasMaxCount(object target, int maxCount)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.Int32 | maxCount |
OR(Object, Object)
Declaration
public bool OR(object lhs, object rhs)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | lhs |
System.Object | rhs |
AND(Object, Object)
Declaration
public bool AND(object lhs, object rhs)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | lhs |
System.Object | rhs |
equals(Object, Object)
Declaration
public bool equals(object target, object other)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.Object | other |
notEquals(Object, Object)
Declaration
public bool notEquals(object target, object other)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.Object | other |
greaterThan(Object, Object)
Declaration
public bool greaterThan(object target, object other)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.Object | other |
greaterThanEqual(Object, Object)
Declaration
public bool greaterThanEqual(object target, object other)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.Object | other |
lessThan(Object, Object)
Declaration
public bool lessThan(object target, object other)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.Object | other |
lessThanEqual(Object, Object)
Declaration
public bool lessThanEqual(object target, object other)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.Object | other |
not(Boolean)
Declaration
public bool not(bool target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Boolean | target |
eq(Object, Object)
Declaration
public bool eq(object target, object other)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.Object | other |
not(Object, Object)
Declaration
public bool not(object target, object other)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.Object | other |
gt(Object, Object)
Declaration
public bool gt(object target, object other)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.Object | other |
gte(Object, Object)
Declaration
public bool gte(object target, object other)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.Object | other |
lt(Object, Object)
Declaration
public bool lt(object target, object other)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.Object | other |
lte(Object, Object)
Declaration
public bool lte(object target, object other)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.Object | other |
echo(Object)
Declaration
public object echo(object value)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | value |
pass(String)
Declaration
public IRawString pass(string target)
Returns
ServiceStack.IRawString
Parameters
Type | Name |
---|
System.String | target |
join(IEnumerable<Object>)
Declaration
public string join(IEnumerable<object> values)
Returns
System.String
Parameters
Type | Name |
---|
System.Collections.Generic.IEnumerable<System.Object> | values |
joinln(IEnumerable<Object>)
Declaration
public string joinln(IEnumerable<object> values)
Returns
System.String
Parameters
Type | Name |
---|
System.Collections.Generic.IEnumerable<System.Object> | values |
join(IEnumerable<Object>, String)
Declaration
public string join(IEnumerable<object> values, string delimiter)
Returns
System.String
Parameters
Type | Name |
---|
System.Collections.Generic.IEnumerable<System.Object> | values |
System.String | delimiter |
reverse(ScriptScopeContext, IEnumerable<Object>)
Declaration
public IEnumerable<object> reverse(ScriptScopeContext scope, IEnumerable<object> original)
Returns
System.Collections.Generic.IEnumerable<System.Object>
Parameters
keyValuePair(String, Object)
Declaration
public KeyValuePair<string, object> keyValuePair(string key, object value)
Returns
System.Collections.Generic.KeyValuePair<System.String,System.Object>
Parameters
Type | Name |
---|
System.String | key |
System.Object | value |
prependTo(ScriptScopeContext, String, Object)
Declaration
public IgnoreResult prependTo(ScriptScopeContext scope, string value, object argExpr)
Returns
ServiceStack.Script.IgnoreResult
Parameters
prependToGlobal(ScriptScopeContext, String, Object)
Declaration
public IgnoreResult prependToGlobal(ScriptScopeContext scope, string value, object argExpr)
Returns
ServiceStack.Script.IgnoreResult
Parameters
appendTo(ScriptScopeContext, String, Object)
Declaration
public IgnoreResult appendTo(ScriptScopeContext scope, string value, object argExpr)
Returns
ServiceStack.Script.IgnoreResult
Parameters
appendToGlobal(ScriptScopeContext, String, Object)
Declaration
public IgnoreResult appendToGlobal(ScriptScopeContext scope, string value, object argExpr)
Returns
ServiceStack.Script.IgnoreResult
Parameters
addToStart(ScriptScopeContext, Object, Object)
Declaration
public IgnoreResult addToStart(ScriptScopeContext scope, object value, object argExpr)
Returns
ServiceStack.Script.IgnoreResult
Parameters
addToStartGlobal(ScriptScopeContext, Object, Object)
Declaration
public IgnoreResult addToStartGlobal(ScriptScopeContext scope, object value, object argExpr)
Returns
ServiceStack.Script.IgnoreResult
Parameters
addTo(ScriptScopeContext, Object, Object)
Declaration
public IgnoreResult addTo(ScriptScopeContext scope, object value, object argExpr)
Returns
ServiceStack.Script.IgnoreResult
Parameters
addToGlobal(ScriptScopeContext, Object, Object)
Declaration
public IgnoreResult addToGlobal(ScriptScopeContext scope, object value, object argExpr)
Returns
ServiceStack.Script.IgnoreResult
Parameters
addItem(Object, Object)
Declaration
public object addItem(object collection, object value)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | collection |
System.Object | value |
putItem(IDictionary, Object, Object)
Puts value in dictionary at key
Declaration
public object putItem(IDictionary dictionary, object key, object value)
Returns
System.Object
: value
Parameters
Type | Name |
---|
System.Collections.IDictionary | dictionary |
System.Object | key |
System.Object | value |
resolveArg(ScriptScopeContext, String)
Declaration
public object resolveArg(ScriptScopeContext scope, string name)
Returns
System.Object
Parameters
resolveGlobal(ScriptScopeContext, String)
Declaration
public object resolveGlobal(ScriptScopeContext scope, string name)
Returns
System.Object
Parameters
resolvePageArg(ScriptScopeContext, String)
Declaration
public object resolvePageArg(ScriptScopeContext scope, string name)
Returns
System.Object
Parameters
resolveContextArg(ScriptScopeContext, String)
Declaration
public object resolveContextArg(ScriptScopeContext scope, string name)
Returns
System.Object
Parameters
assign(ScriptScopeContext, String, Object)
Declaration
public object assign(ScriptScopeContext scope, string argExpr, object value)
Returns
System.Object
Parameters
assignGlobal(ScriptScopeContext, String, Object)
Declaration
public object assignGlobal(ScriptScopeContext scope, string argExpr, object value)
Returns
System.Object
Parameters
to(ScriptScopeContext, Object, Object)
Declaration
public IgnoreResult to(ScriptScopeContext scope, object value, object argExpr)
Returns
ServiceStack.Script.IgnoreResult
Parameters
assignTo(ScriptScopeContext, Object, Object)
Declaration
public IgnoreResult assignTo(ScriptScopeContext scope, object value, object argExpr)
Returns
ServiceStack.Script.IgnoreResult
Parameters
toGlobal(ScriptScopeContext, Object, Object)
Declaration
public IgnoreResult toGlobal(ScriptScopeContext scope, object value, object argExpr)
Returns
ServiceStack.Script.IgnoreResult
Parameters
assignToGlobal(ScriptScopeContext, Object, Object)
Declaration
public IgnoreResult assignToGlobal(ScriptScopeContext scope, object value, object argExpr)
Returns
ServiceStack.Script.IgnoreResult
Parameters
to(ScriptScopeContext, Object)
Declaration
public Task to(ScriptScopeContext scope, object argExpr)
Returns
System.Threading.Tasks.Task
Parameters
assignTo(ScriptScopeContext, Object)
Declaration
public Task assignTo(ScriptScopeContext scope, object argExpr)
Returns
System.Threading.Tasks.Task
Parameters
toGlobal(ScriptScopeContext, Object)
Declaration
public Task toGlobal(ScriptScopeContext scope, object argExpr)
Returns
System.Threading.Tasks.Task
Parameters
assignToGlobal(ScriptScopeContext, Object)
Declaration
public Task assignToGlobal(ScriptScopeContext scope, object argExpr)
Returns
System.Threading.Tasks.Task
Parameters
GetVarNameFromStringOrArrowExpression(String, Object)
Declaration
public static string GetVarNameFromStringOrArrowExpression(string filterName, object argExpr)
Returns
System.String
Parameters
Type | Name |
---|
System.String | filterName |
System.Object | argExpr |
buffer(ScriptScopeContext, Object)
Declaration
public Task buffer(ScriptScopeContext scope, object target)
Returns
System.Threading.Tasks.Task
Parameters
partial(ScriptScopeContext, Object)
Declaration
public Task partial(ScriptScopeContext scope, object target)
Returns
System.Threading.Tasks.Task
Parameters
partial(ScriptScopeContext, Object, Object)
Declaration
public async Task partial(ScriptScopeContext scope, object target, object scopedParams)
Returns
System.Threading.Tasks.Task
Parameters
selectEach(ScriptScopeContext, Object, Object)
Declaration
public Task selectEach(ScriptScopeContext scope, object target, object items)
Returns
System.Threading.Tasks.Task
Parameters
selectEach(ScriptScopeContext, Object, Object, Object)
Declaration
public async Task selectEach(ScriptScopeContext scope, object target, object items, object scopeOptions)
Returns
System.Threading.Tasks.Task
Parameters
toString(Object)
Declaration
public string toString(object target)
Returns
System.String
Parameters
Type | Name |
---|
System.Object | target |
asString(Object)
Declaration
public string asString(object target)
Returns
System.String
Parameters
Type | Name |
---|
System.Object | target |
toList(IEnumerable)
Declaration
public List<object> toList(IEnumerable target)
Returns
System.Collections.Generic.List<System.Object>
Parameters
Type | Name |
---|
System.Collections.IEnumerable | target |
toStringList(IEnumerable)
Declaration
public List<string> toStringList(IEnumerable target)
Returns
System.Collections.Generic.List<System.String>
Parameters
Type | Name |
---|
System.Collections.IEnumerable | target |
toArray(IEnumerable)
Declaration
public object[] toArray(IEnumerable target)
Returns
System.Object[]
Parameters
Type | Name |
---|
System.Collections.IEnumerable | target |
fromCharCode(Int32)
Declaration
public char fromCharCode(int charCode)
Returns
System.Char
Parameters
Type | Name |
---|
System.Int32 | charCode |
toChar(Object)
Declaration
public char toChar(object target)
Returns
System.Char
Parameters
Type | Name |
---|
System.Object | target |
toChars(Object)
Declaration
public char[] toChars(object target)
Returns
System.Char[]
Parameters
Type | Name |
---|
System.Object | target |
toCharCode(Object)
Declaration
public int toCharCode(object target)
Returns
System.Int32
Parameters
Type | Name |
---|
System.Object | target |
toUtf8Bytes(String)
Declaration
public byte[] toUtf8Bytes(string target)
Returns
System.Byte[]
Parameters
Type | Name |
---|
System.String | target |
fromUtf8Bytes(Byte[])
Declaration
public string fromUtf8Bytes(byte[] target)
Returns
System.String
Parameters
Type | Name |
---|
System.Byte[] | target |
toByte(Object)
Declaration
public byte toByte(object target)
Returns
System.Byte
Parameters
Type | Name |
---|
System.Object | target |
toInt(Object)
Declaration
public int toInt(object target)
Returns
System.Int32
Parameters
Type | Name |
---|
System.Object | target |
toLong(Object)
Declaration
public long toLong(object target)
Returns
System.Int64
Parameters
Type | Name |
---|
System.Object | target |
toFloat(Object)
Declaration
public float toFloat(object target)
Returns
System.Single
Parameters
Type | Name |
---|
System.Object | target |
toDouble(Object)
Declaration
public double toDouble(object target)
Returns
System.Double
Parameters
Type | Name |
---|
System.Object | target |
toDecimal(Object)
Declaration
public decimal toDecimal(object target)
Returns
System.Decimal
Parameters
Type | Name |
---|
System.Object | target |
toBool(Object)
Declaration
public bool toBool(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
toDateTime(Object)
Declaration
public DateTime toDateTime(object target)
Returns
System.DateTime
Parameters
Type | Name |
---|
System.Object | target |
date(Int32, Int32, Int32)
Declaration
public DateTime date(int year, int month, int day)
Returns
System.DateTime
Parameters
Type | Name |
---|
System.Int32 | year |
System.Int32 | month |
System.Int32 | day |
date(Int32, Int32, Int32, Int32, Int32, Int32)
Declaration
public DateTime date(int year, int month, int day, int hour, int min, int secs)
Returns
System.DateTime
Parameters
Type | Name |
---|
System.Int32 | year |
System.Int32 | month |
System.Int32 | day |
System.Int32 | hour |
System.Int32 | min |
System.Int32 | secs |
toTimeSpan(Object)
Declaration
public TimeSpan toTimeSpan(object target)
Returns
System.TimeSpan
Parameters
Type | Name |
---|
System.Object | target |
time(Int32, Int32, Int32)
Declaration
public TimeSpan time(int hours, int mins, int secs)
Returns
System.TimeSpan
Parameters
Type | Name |
---|
System.Int32 | hours |
System.Int32 | mins |
System.Int32 | secs |
time(Int32, Int32, Int32, Int32)
Declaration
public TimeSpan time(int days, int hours, int mins, int secs)
Returns
System.TimeSpan
Parameters
Type | Name |
---|
System.Int32 | days |
System.Int32 | hours |
System.Int32 | mins |
System.Int32 | secs |
pair(String, Object)
Declaration
public KeyValuePair<string, object> pair(string key, object value)
Returns
System.Collections.Generic.KeyValuePair<System.String,System.Object>
Parameters
Type | Name |
---|
System.String | key |
System.Object | value |
toKeys(Object)
Declaration
public List<string> toKeys(object target)
Returns
System.Collections.Generic.List<System.String>
Parameters
Type | Name |
---|
System.Object | target |
toValues(Object)
Declaration
public List<object> toValues(object target)
Returns
System.Collections.Generic.List<System.Object>
Parameters
Type | Name |
---|
System.Object | target |
toObjectDictionary(Object)
Declaration
public Dictionary<string, object> toObjectDictionary(object target)
Returns
System.Collections.Generic.Dictionary<System.String,System.Object>
Parameters
Type | Name |
---|
System.Object | target |
toStringDictionary(IDictionary)
Declaration
public Dictionary<string, string> toStringDictionary(IDictionary map)
Returns
System.Collections.Generic.Dictionary<System.String,System.String>
Parameters
Type | Name |
---|
System.Collections.IDictionary | map |
splitStringList(IEnumerable)
Declaration
public List<string> splitStringList(IEnumerable strings)
Returns
System.Collections.Generic.List<System.String>
Parameters
Type | Name |
---|
System.Collections.IEnumerable | strings |
toVarNames(IEnumerable)
Declaration
public List<string> toVarNames(IEnumerable names)
Returns
System.Collections.Generic.List<System.String>
Parameters
Type | Name |
---|
System.Collections.IEnumerable | names |
AssertWithinMaxQuota(Int32)
Declaration
public int AssertWithinMaxQuota(int value)
Returns
System.Int32
Parameters
Type | Name |
---|
System.Int32 | value |
toDictionary(ScriptScopeContext, Object, Object)
Declaration
public Dictionary<object, object> toDictionary(ScriptScopeContext scope, object target, object expression)
Returns
System.Collections.Generic.Dictionary<System.Object,System.Object>
Parameters
toDictionary(ScriptScopeContext, Object, Object, Object)
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(Object)
Declaration
public IRawString typeName(object target)
Returns
ServiceStack.IRawString
Parameters
Type | Name |
---|
System.Object | target |
typeFullName(Object)
Declaration
public IRawString typeFullName(object target)
Returns
ServiceStack.IRawString
Parameters
Type | Name |
---|
System.Object | target |
of(ScriptScopeContext, IEnumerable, Object)
Declaration
public IEnumerable of(ScriptScopeContext scope, IEnumerable target, object scopeOptions)
Returns
System.Collections.IEnumerable
Parameters
do(ScriptScopeContext, Object)
Declaration
public object do(ScriptScopeContext scope, object expression)
Returns
System.Object
Parameters
do(ScriptScopeContext, Object, Object)
Declaration
public Task do(ScriptScopeContext scope, object target, object expression)
Returns
System.Threading.Tasks.Task
Parameters
do(ScriptScopeContext, Object, Object, Object)
Declaration
public Task do(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns
System.Threading.Tasks.Task
Parameters
props(Object)
Declaration
public List<string> props(object o)
Returns
System.Collections.Generic.List<System.String>
Parameters
propTypes(Object)
Declaration
public PropertyInfo[] propTypes(object o)
Returns
System.Reflection.PropertyInfo[]
Parameters
staticProps(Object)
Declaration
public List<string> staticProps(object o)
Returns
System.Collections.Generic.List<System.String>
Parameters
staticPropTypes(Object)
Declaration
public PropertyInfo[] staticPropTypes(object o)
Returns
System.Reflection.PropertyInfo[]
Parameters
fields(Object)
Declaration
public List<string> fields(object o)
Returns
System.Collections.Generic.List<System.String>
Parameters
fieldTypes(Object)
Declaration
public FieldInfo[] fieldTypes(object o)
Returns
System.Reflection.FieldInfo[]
Parameters
staticFields(Object)
Declaration
public List<string> staticFields(object o)
Returns
System.Collections.Generic.List<System.String>
Parameters
staticFieldTypes(Object)
Declaration
public FieldInfo[] staticFieldTypes(object o)
Returns
System.Reflection.FieldInfo[]
Parameters
property(Object, String)
Declaration
public object property(object target, string propertyName)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
System.String | propertyName |
field(Object, String)
Declaration
public object field(object target, string fieldName)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
System.String | fieldName |
map(ScriptScopeContext, Object, Object)
Declaration
public object map(ScriptScopeContext scope, object items, object expression)
Returns
System.Object
Parameters
map(ScriptScopeContext, Object, Object, Object)
Declaration
public object map(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns
System.Object
Parameters
scopeVars(Object)
Declaration
public object scopeVars(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
selectFields(Object, Object)
Declaration
public object selectFields(object target, object names)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
System.Object | names |
select(ScriptScopeContext, Object, Object)
Declaration
public Task select(ScriptScopeContext scope, object target, object selectTemplate)
Returns
System.Threading.Tasks.Task
Parameters
select(ScriptScopeContext, Object, Object, Object)
Declaration
public async Task select(ScriptScopeContext scope, object target, object selectTemplate, object scopeOptions)