Class Utils
Inheritance
System.Object
Utils
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.EJ2.Base
Assembly: Syncfusion.EJ2.dll
Syntax
public static class Utils
Methods
DataTableToJson(DataTable)
Declaration
public static IEnumerable DataTableToJson(DataTable dt)
Parameters
Type | Name | Description |
---|---|---|
System.Data.DataTable | dt |
Returns
Type | Description |
---|---|
System.Collections.IEnumerable |
EscapeString(String)
Escape special charaters in string literals.
Declaration
public static string EscapeString(string input)
Parameters
Type | Name | Description |
---|---|---|
System.String | input | The input object. |
Returns
Type | Description |
---|---|
System.String | escaped string |
GetTableType(DataColumnCollection)
Declaration
public static Type GetTableType(DataColumnCollection column)
Parameters
Type | Name | Description |
---|---|---|
System.Data.DataColumnCollection | column |
Returns
Type | Description |
---|---|
System.Type |
getValue(String, Object)
Gets the property value from list of object.
Declaration
public static object getValue(string nameSpace, object from)
Parameters
Type | Name | Description |
---|---|---|
System.String | nameSpace | |
System.Object | from |
Returns
Type | Description |
---|---|
System.Object | object |