Class SerializedData
Serialized data
Inherited Members
Namespace: XData
Assembly: XData.docfx.dll
Syntax
[DataContract]
[Serializable]
public class SerializedData
Constructors
| Improve this Doc View SourceSerializedData(IRepository, IDataObject)
Serialized data constructor
Declaration
public SerializedData(IRepository repository, IDataObject obj)
Parameters
| Type | Name | Description |
|---|---|---|
| IRepository | repository | Repository |
| IDataObject | obj | Data object to serialize |
Properties
| Improve this Doc View SourceData
Serialized data
Declaration
[DataMember]
public SerializedValue[] Data { get; set; }
Property Value
| Type | Description |
|---|---|
| SerializedValue[] |
ObjectType
Object type
Declaration
[DataMember]
public string ObjectType { get; }
Property Value
| Type | Description |
|---|---|
| String |
State
DataObject state
Declaration
[DataMember]
public DataObjectState State { get; set; }
Property Value
| Type | Description |
|---|---|
| DataObjectState |
Methods
| Improve this Doc View SourceGetFieldValue(Type, String)
Returns field value
Declaration
public object GetFieldValue(Type type, string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | Field type |
| String | fieldName | Field name |
Returns
| Type | Description |
|---|---|
| Object | Field value |
Exceptions
| Type | Condition |
|---|---|
| XDataRuntimeException | serialized data has not contains requested field. |
HasFieldValue(String)
Serialized data has field value
Declaration
public bool HasFieldValue(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| String | fieldName | Field name |
Returns
| Type | Description |
|---|---|
| Boolean | Field value found |
IsFieldNull(String)
Serialized data field value is null
Declaration
public bool IsFieldNull(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| String | fieldName | Field name |
Returns
| Type | Description |
|---|---|
| Boolean | Field value is null |
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| String |