Class DataUtil
Provides utility method used by data manager.
Inheritance
System.Object
DataUtil
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Blazor.Data
Assembly: Syncfusion.EJ2.Pivot.dll
Syntax
public class DataUtil
Constructors
DataUtil()
Declaration
public DataUtil()
Methods
GetDynamicValue(DynamicObject, String)
Gets the property value from the DynamicObject.
Declaration
public static object GetDynamicValue(DynamicObject obj, string name)
Parameters
Type | Name | Description |
---|---|---|
System.Dynamic.DynamicObject | obj | Input dynamic object. |
System.String | name | Property name to get. |
Returns
Type | Description |
---|---|
System.Object | object |
GetExpandoValue(IDictionary<String, Object>, String)
Gets the property value from the ExpandoObject.
Declaration
public static object GetExpandoValue(IDictionary<string, object> obj, string name)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> | obj | Input Expando object. |
System.String | name | Property name to get. |
Returns
Type | Description |
---|---|
System.Object | object |
GetObject(String, Object)
Gets the property value from object.
Declaration
public static object GetObject(string nameSpace, object from)
Parameters
Type | Name | Description |
---|---|---|
System.String | nameSpace | Property name to be accessed. |
System.Object | from | Source object |
Returns
Type | Description |
---|---|
System.Object | object - property value. |
Remarks
For accessing complex/nested property value, given the nameSpace with field names delimited by dot(.).