skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class ExpressionContext

Inheritance
System.Object
DynamicObject
DictionaryObject
ExpressionContext
Inherited Members
DictionaryObject.GetEnumeratorInternal()
DictionaryObject.GetValue(String)
DictionaryObject.ContainsKey(String)
DictionaryObject.Remove(String)
DictionaryObject.TryGetValue(String, Object)
DictionaryObject.Add(KeyValuePair<String, Object>)
DictionaryObject.Contains(KeyValuePair<String, Object>)
DictionaryObject.CopyTo(KeyValuePair<String, Object>[], Int32)
DictionaryObject.Remove(KeyValuePair<String, Object>)
DictionaryObject.Item[String]
DictionaryObject.Keys
DictionaryObject.Values
DictionaryObject.Count
DictionaryObject.IsReadOnly
DynamicObject.IEnumerable<KeyValuePair<String, Object>>.GetEnumerator()
DynamicObject.IEnumerable.GetEnumerator()
DynamicObject.GetProperties()
DynamicObject.GetProperties(Attribute[])
DynamicObject.GetPropertyOwner(PropertyDescriptor)
Namespace: Telerik.Data.Expressions
Assembly: Telerik.WinControls.dll

Syntax

public class ExpressionContext : DictionaryObject, IDictionary<string, object>, ICollection<KeyValuePair<string, object>>, IEnumerable<KeyValuePair<string, object>>, IEnumerable, IDisposable

Constructors

ExpressionContext()

Declaration
public ExpressionContext()

Fields

CaseSensitive

Declaration
public bool CaseSensitive
Field Value
System.Boolean

Properties

Context

Set or get default expression context class, which will be used for determinating the expression functions.

Declaration
public static ExpressionContext Context { get; set; }
Property Value
ExpressionContext

Methods

Abs(Object)

Declaration
public virtual object Abs(object value)
Parameters
System.Object value

Returns
System.Object

Acos(Object)

Declaration
public virtual double Acos(object value)
Parameters
System.Object value

Returns
System.Double

Add(String, Object)

Declaration
public override void Add(string key, object value)
Parameters
System.String key

System.Object value

Overrides
DictionaryObject.Add(String, Object)

AddDays(Object, Object)

Declaration
public virtual DateTime AddDays(object value, object daysToAdd)
Parameters
System.Object value

System.Object daysToAdd

Returns
System.DateTime

AddHours(Object, Object)

Declaration
public virtual DateTime AddHours(object value, object hoursToAdd)
Parameters
System.Object value

System.Object hoursToAdd

Returns
System.DateTime

AddMilliseconds(Object, Object)

Declaration
public virtual DateTime AddMilliseconds(object value, object millisecondsToAdd)
Parameters
System.Object value

System.Object millisecondsToAdd

Returns
System.DateTime

AddMinutes(Object, Object)

Declaration
public virtual DateTime AddMinutes(object value, object minutesToAdd)
Parameters
System.Object value

System.Object minutesToAdd

Returns
System.DateTime

AddMonths(Object, Object)

Declaration
public virtual DateTime AddMonths(object value, object monthsToAdd)
Parameters
System.Object value

System.Object monthsToAdd

Returns
System.DateTime

AddSeconds(Object, Object)

Declaration
public virtual DateTime AddSeconds(object value, object secondsToAdd)
Parameters
System.Object value

System.Object secondsToAdd

Returns
System.DateTime

AddTicks(Object, Object)

Declaration
public virtual DateTime AddTicks(object value, object ticksToAdd)
Parameters
System.Object value

System.Object ticksToAdd

Returns
System.DateTime

AddTimeSpan(Object, Object)

Declaration
public virtual DateTime AddTimeSpan(object value, object timeSpan)
Parameters
System.Object value

System.Object timeSpan

Returns
System.DateTime

AddYears(Object, Object)

Declaration
public virtual DateTime AddYears(object value, object yearsToAdd)
Parameters
System.Object value

System.Object yearsToAdd

Returns
System.DateTime

Asin(Object)

Declaration
public virtual double Asin(object value)
Parameters
System.Object value

Returns
System.Double

Atan(Object)

Declaration
public virtual double Atan(object value)
Parameters
System.Object value

Returns
System.Double

BigMul(Object, Object)

Declaration
public virtual long BigMul(object value1, object value2)
Parameters
System.Object value1

System.Object value2

Returns
System.Int64

CBool(Object)

Declaration
public virtual object CBool(object value)
Parameters
System.Object value

Returns
System.Object

CDate(Object)

Declaration
public virtual object CDate(object value)
Parameters
System.Object value

Returns
System.Object

CDbl(Object)

Declaration
public virtual object CDbl(object value)
Parameters
System.Object value

Returns
System.Object

Ceiling(Object)

Declaration
public virtual object Ceiling(object value)
Parameters
System.Object value

Returns
System.Object

CInt(Object)

Declaration
public virtual object CInt(object value)
Parameters
System.Object value

Returns
System.Object

Clear()

Declaration
public override void Clear()
Overrides
DictionaryObject.Clear()

ClearThreadedContexts()

Declaration
public static void ClearThreadedContexts()

Cos(Object)

Declaration
public virtual double Cos(object value)
Parameters
System.Object value

Returns
System.Double

Cosh(Object)

Declaration
public virtual double Cosh(object value)
Parameters
System.Object value

Returns
System.Double

CStr(Object)

Declaration
public virtual string CStr(object value)
Parameters
System.Object value

Returns
System.String

DateDiffDay(Object, Object)

Declaration
public virtual double DateDiffDay(object startDate, object endDate)
Parameters
System.Object startDate

System.Object endDate

Returns
System.Double

DateDiffHour(Object, Object)

Declaration
public virtual double DateDiffHour(object startDate, object endDate)
Parameters
System.Object startDate

System.Object endDate

Returns
System.Double

DateDiffMilliSecond(Object, Object)

Declaration
public virtual double DateDiffMilliSecond(object startDate, object endDate)
Parameters
System.Object startDate

System.Object endDate

Returns
System.Double

DateDiffMinute(Object, Object)

Declaration
public virtual double DateDiffMinute(object startDate, object endDate)
Parameters
System.Object startDate

System.Object endDate

Returns
System.Double

DateDiffSecond(Object, Object)

Declaration
public virtual double DateDiffSecond(object startDate, object endDate)
Parameters
System.Object startDate

System.Object endDate

Returns
System.Double

DateDiffTick(Object, Object)

Declaration
public virtual long DateDiffTick(object startDate, object endDate)
Parameters
System.Object startDate

System.Object endDate

Returns
System.Int64

Dispose()

Declaration
public virtual void Dispose()
Implements
System.IDisposable.Dispose()

Exp(Object)

Declaration
public virtual double Exp(object value)
Parameters
System.Object value

Returns
System.Double

Floor(Object)

Declaration
public virtual object Floor(object value)
Parameters
System.Object value

Returns
System.Object

Format(String, Object)

Declaration
public virtual string Format(string format, object value)
Parameters
System.String format

System.Object value

Returns
System.String

GetContext(Int32)

Declaration
public static ExpressionContext GetContext(int threadId)
Parameters
System.Int32 threadId

Returns
ExpressionContext

GetDate(Object)

Declaration
public virtual DateTime GetDate(object value)
Parameters
System.Object value

Returns
System.DateTime

GetDay(Object)

Declaration
public virtual int GetDay(object value)
Parameters
System.Object value

Returns
System.Int32

GetDayOfWeek(Object)

Declaration
public virtual DayOfWeek GetDayOfWeek(object value)
Parameters
System.Object value

Returns
System.DayOfWeek

GetDayOfYear(Object)

Declaration
public virtual int GetDayOfYear(object value)
Parameters
System.Object value

Returns
System.Int32

GetHour(Object)

Declaration
public virtual int GetHour(object value)
Parameters
System.Object value

Returns
System.Int32

GetMilliSecond(Object)

Declaration
public virtual int GetMilliSecond(object value)
Parameters
System.Object value

Returns
System.Int32

GetMinute(Object)

Declaration
public virtual int GetMinute(object value)
Parameters
System.Object value

Returns
System.Int32

GetMonth(Object)

Declaration
public virtual int GetMonth(object value)
Parameters
System.Object value

Returns
System.Int32

GetSecond(Object)

Declaration
public virtual int GetSecond(object value)
Parameters
System.Object value

Returns
System.Int32

GetTimeOfDay(Object)

Declaration
public virtual long GetTimeOfDay(object value)
Parameters
System.Object value

Returns
System.Int64

GetYear(Object)

Declaration
public virtual int GetYear(object value)
Parameters
System.Object value

Returns
System.Int32

IIf(Object, Object, Object)

Declaration
public virtual object IIf(object expr, object truePart, object falsePart)
Parameters
System.Object expr

System.Object truePart

System.Object falsePart

Returns
System.Object

Insert(String, Int32, String)

Declaration
public virtual string Insert(string str1, int startPosition, string str2)
Parameters
System.String str1

System.Int32 startPosition

System.String str2

Returns
System.String

IsNull(Object, Object)

Declaration
public virtual object IsNull(object value, object defaultValue)
Parameters
System.Object value

System.Object defaultValue

Returns
System.Object

Len(String)

Declaration
public virtual int Len(string text)
Parameters
System.String text

Returns
System.Int32

Log(Object)

Declaration
public virtual double Log(object value)
Parameters
System.Object value

Returns
System.Double

Log10(Object)

Declaration
public virtual double Log10(object value)
Parameters
System.Object value

Returns
System.Double

Lower(String)

Declaration
public virtual string Lower(string str)
Parameters
System.String str

Returns
System.String

Max(Object, Object)

Declaration
public virtual object Max(object value1, object value2)
Parameters
System.Object value1

System.Object value2

Returns
System.Object

Min(Object, Object)

Declaration
public virtual object Min(object value1, object value2)
Parameters
System.Object value1

System.Object value2

Returns
System.Object

Now()

Declaration
public virtual DateTime Now()
Returns
System.DateTime

PadLeft(String, Int32)

Declaration
public virtual string PadLeft(string str, int length)
Parameters
System.String str

System.Int32 length

Returns
System.String

PadRight(String, Int32)

Declaration
public virtual string PadRight(string str, int length)
Parameters
System.String str

System.Int32 length

Returns
System.String

Power(Object, Object)

Declaration
public virtual double Power(object value, object power)
Parameters
System.Object value

System.Object power

Returns
System.Double

Remove(String, Int32, Int32)

Declaration
public virtual string Remove(string str1, int startPosition, int length)
Parameters
System.String str1

System.Int32 startPosition

System.Int32 length

Returns
System.String

Replace(String, String, String)

Declaration
public virtual string Replace(string str1, string subStr2, string str3)
Parameters
System.String str1

System.String subStr2

System.String str3

Returns
System.String

Rnd()

Declaration
public virtual double Rnd()
Returns
System.Double

Round(Object)

Declaration
public virtual decimal Round(object value)
Parameters
System.Object value

Returns
System.Decimal

SetValue(String, Object)

Declaration
protected override void SetValue(string name, object value)
Parameters
System.String name

System.Object value

Overrides
DictionaryObject.SetValue(String, Object)

Sign(Object)

Declaration
public virtual int Sign(object value)
Parameters
System.Object value

Returns
System.Int32

Sin(Object)

Declaration
public virtual double Sin(object value)
Parameters
System.Object value

Returns
System.Double

Sinh(Object)

Declaration
public virtual double Sinh(object value)
Parameters
System.Object value

Returns
System.Double

Sqrt(Object)

Declaration
public virtual double Sqrt(object value)
Parameters
System.Object value

Returns
System.Double

Substr(String, Int32, Int32)

Declaration
public virtual string Substr(string text, int startIndex, int length)
Parameters
System.String text

System.Int32 startIndex

System.Int32 length

Returns
System.String

Tan(Object)

Declaration
public virtual double Tan(object value)
Parameters
System.Object value

Returns
System.Double

Tanh(Object)

Declaration
public virtual double Tanh(object value)
Parameters
System.Object value

Returns
System.Double

Today()

Declaration
public virtual DateTime Today()
Returns
System.DateTime

ToStr(Object)

Declaration
public virtual string ToStr(object value)
Parameters
System.Object value

Returns
System.String

Trim(String)

Declaration
public virtual string Trim(string text)
Parameters
System.String text

Returns
System.String

Upper(String)

Declaration
public virtual string Upper(string str)
Parameters
System.String str

Returns
System.String

UtcNow()

Declaration
public virtual DateTime UtcNow()
Returns
System.DateTime

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.