![]() |
CSLA .NET 10.0.0
A home for your business logic
|
Object containing the serialization data for a specific object. More...
Classes | |
| class | FieldData |
| Object that contains information about a single field. More... | |
| class | ChildData |
| Object that contains information about a single child reference. More... | |
Public Member Functions | |
| SerializationInfo (int referenceId, string typeName) | |
| Initializes a new instance of SerializationInfo-object. | |
| void | AddValue (string name, object? value) |
| Adds a value to the serialization stream. | |
| void | AddValue (string name, object? value, bool isDirty) |
| Adds a value to the list of fields. | |
| void | AddValue (string name, object? value, bool isDirty, string? enumTypeName) |
| Adds a value to the list of fields. | |
| T? | GetValue<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T > (string name) |
| Gets a value from the list of fields. | |
| T | GetRequiredValue<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T > (string name) |
Gets a value from the list of fields which is required to be not null. | |
| void | AddChild (string name, int referenceId) |
| Adds a child to the list of child references. | |
| void | AddChild (string name, int referenceId, bool isDirty) |
| Adds a child to the list of child references. | |
| SerializationInfo () | |
| Creates an instance of the type. | |
| void | GetState (SerializationInfo info) |
| Method called by MobileFormatter when an object should serialize its data. The data should be serialized into the SerializationInfo parameter. | |
| void | GetChildren (SerializationInfo info, MobileFormatter formatter) |
| Method called by MobileFormatter when an object should serialize its child references. The data should be serialized into the SerializationInfo parameter. | |
| void | SetState (SerializationInfo info) |
| Method called by MobileFormatter when an object should be deserialized. The data should be deserialized from the SerializationInfo parameter. | |
| void | SetChildren (SerializationInfo info, MobileFormatter formatter) |
| Method called by MobileFormatter when an object should deserialize its child references. The data should be deserialized from the SerializationInfo parameter. | |
Static Public Member Functions | |
| static bool | IsNativeType (Type type) |
| Returns true if the type is considered a simple (non-complex) serializable type by MobileFormatter. | |
Properties | |
| Dictionary< string, ChildData > | Children [get, set] |
| Dictionary containing child reference data. | |
| Dictionary< string, FieldData > | Values [get, set] |
| Dictionary containg field data. | |
| int | ReferenceId [get, set] |
| Reference number for this object. | |
| string | TypeName [get] |
| Assembly-qualified type name of the object being serialized. | |
Object containing the serialization data for a specific object.
|
inline |
Initializes a new instance of SerializationInfo-object.
| referenceId | The reference number for this object. |
| typeName | Assembly-qualified type name of the object being serialized. |
| ArgumentException | typeName is null, string.Empty or only consists of white spaces. |
|
inline |
Creates an instance of the type.
|
inline |
Adds a child to the list of child references.
| name | Name of the field. |
| referenceId | Reference id for the child object. |
|
inline |
Adds a child to the list of child references.
| name | Name of the field. |
| referenceId | Reference id for the child object. |
| isDirty | Flag indicating whether the child is dirty. |
|
inline |
Adds a value to the serialization stream.
| name | Name of the field. |
| value | Value of the field. |
|
inline |
Adds a value to the list of fields.
| name | Name of the field. |
| value | Value of the field. |
| isDirty | Flag indicating whether the value is dirty. |
|
inline |
Adds a value to the list of fields.
| name | Name of the field. |
| value | Value of the field. |
| isDirty | Flag indicating whether the value is dirty. |
| enumTypeName | Name of the enumeration |
|
inline |
Method called by MobileFormatter when an object should serialize its child references. The data should be serialized into the SerializationInfo parameter.
| info | Object to contain the serialized data. |
| formatter | Reference to the formatter performing the serialization. |
Implements Csla.Serialization.Mobile.IMobileObject.
|
inline |
Gets a value from the list of fields which is required to be not null.
| T | Type to which the value should be coerced. |
| name | Name of the field. |
| InvalidOperationException | Something went wrong or the returned value of name would be null. |
|
inline |
Method called by MobileFormatter when an object should serialize its data. The data should be serialized into the SerializationInfo parameter.
| info | Object to contain the serialized data. |
Implements Csla.Serialization.Mobile.IMobileObject.
|
inline |
Gets a value from the list of fields.
| T | Type to which the value should be coerced. |
| name | Name of the field. |
|
inlinestatic |
Returns true if the type is considered a simple (non-complex) serializable type by MobileFormatter.
| type | Type to evaluate |
|
inline |
Method called by MobileFormatter when an object should deserialize its child references. The data should be deserialized from the SerializationInfo parameter.
| info | Object containing the serialized data. |
| formatter | Reference to the formatter performing the deserialization. |
Implements Csla.Serialization.Mobile.IMobileObject.
|
inline |
Method called by MobileFormatter when an object should be deserialized. The data should be deserialized from the SerializationInfo parameter.
| info | Object containing the serialized data. |
Implements Csla.Serialization.Mobile.IMobileObject.
|
getset |
Dictionary containing child reference data.
|
getset |
Reference number for this object.
|
get |
Assembly-qualified type name of the object being serialized.
|
getset |
Dictionary containg field data.