New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Extension methods for ValueProviderResult.

Definition

Namespace:Kendo.Mvc.Extensions

Assembly:Kendo.Mvc.dll

Syntax:

C#
public static class ValueProviderResultExtensions

Inheritance: objectValueProviderResultExtensions

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Methods

Attempts to convert the values in result to the specified type.

C#
public static object ConvertValueTo(this ValueProviderResult result, Type type)
Parameters:resultValueProviderResult

The ValueProviderResult.

typeType

The Type for conversion.

Returns:

object

The converted value, or the default value of type if the value could not be converted.