CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.Serialization.Mobile.SerializationInfo Class Reference

Object containing the serialization data for a specific object. More...

Inheritance diagram for Csla.Serialization.Mobile.SerializationInfo:
Csla.Serialization.Mobile.IMobileObject

Classes

class  ChildData
 Object that contains information about a single child reference. More...
 
class  FieldData
 Object that contains information about a single field. More...
 

Public Member Functions

void AddValue (string name, object value)
 Adds a value to the serialization stream. More...
 
void AddValue (string name, object value, bool isDirty)
 Adds a value to the list of fields. More...
 
void AddValue (string name, object value, bool isDirty, string enumTypeName)
 Adds a value to the list of fields. More...
 
GetValue< T > (string name)
 Gets a value from the list of fields. More...
 
void AddChild (string name, int referenceId)
 Adds a child to the list of child references. More...
 
void AddChild (string name, int referenceId, bool isDirty)
 Adds a child to the list of child references. More...
 
 SerializationInfo ()
 Creates an instance of the type. More...
 
void GetState (SerializationInfo info)
 Method called by MobileFormatter when an object should serialize its data. More...
 
void GetChildren (SerializationInfo info, MobileFormatter formatter)
 Method called by MobileFormatter when an object should serialize its child references. More...
 
void SetState (SerializationInfo info)
 Method called by MobileFormatter when an object should be deserialized. More...
 
void SetChildren (SerializationInfo info, MobileFormatter formatter)
 Method called by MobileFormatter when an object should deserialize its child references. More...
 

Properties

Dictionary< string, ChildDataChildren [getset]
 Dictionary containing child reference data. More...
 
Dictionary< string, FieldDataValues [getset]
 Dictionary containg field data. More...
 
int ReferenceId [getset]
 Reference number for this object. More...
 
string TypeName [getset]
 Assembly-qualified type name of the object being serialized. More...
 

Detailed Description

Object containing the serialization data for a specific object.

Definition at line 26 of file SerializationInfo.cs.

Constructor & Destructor Documentation

◆ SerializationInfo()

Csla.Serialization.Mobile.SerializationInfo.SerializationInfo ( )

Creates an instance of the type.

Definition at line 342 of file SerializationInfo.cs.

Member Function Documentation

◆ AddChild() [1/2]

void Csla.Serialization.Mobile.SerializationInfo.AddChild ( string  name,
int  referenceId 
)

Adds a child to the list of child references.

Parameters
nameName of the field.
referenceIdReference id for the child object.

Definition at line 315 of file SerializationInfo.cs.

◆ AddChild() [2/2]

void Csla.Serialization.Mobile.SerializationInfo.AddChild ( string  name,
int  referenceId,
bool  isDirty 
)

Adds a child to the list of child references.

Parameters
nameName of the field.
referenceIdReference id for the child object.
isDirtyFlag indicating whether the child is dirty.

Definition at line 332 of file SerializationInfo.cs.

◆ AddValue() [1/3]

void Csla.Serialization.Mobile.SerializationInfo.AddValue ( string  name,
object  value 
)

Adds a value to the serialization stream.

Parameters
nameName of the field.
valueValue of the field.

Definition at line 241 of file SerializationInfo.cs.

◆ AddValue() [2/3]

void Csla.Serialization.Mobile.SerializationInfo.AddValue ( string  name,
object  value,
bool  isDirty 
)

Adds a value to the list of fields.

Parameters
nameName of the field.
valueValue of the field.
isDirtyFlag indicating whether the value is dirty.

Definition at line 258 of file SerializationInfo.cs.

◆ AddValue() [3/3]

void Csla.Serialization.Mobile.SerializationInfo.AddValue ( string  name,
object  value,
bool  isDirty,
string  enumTypeName 
)

Adds a value to the list of fields.

Parameters
nameName of the field.
valueValue of the field.
isDirtyFlag indicating whether the value is dirty.
enumTypeNameName of the enumeration

Definition at line 278 of file SerializationInfo.cs.

◆ GetChildren()

void Csla.Serialization.Mobile.SerializationInfo.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.

Parameters
infoObject to contain the serialized data.
formatterReference to the formatter performing the serialization.

Implements Csla.Serialization.Mobile.IMobileObject.

Definition at line 369 of file SerializationInfo.cs.

◆ GetState()

void Csla.Serialization.Mobile.SerializationInfo.GetState ( SerializationInfo  info)

Method called by MobileFormatter when an object should serialize its data.

The data should be serialized into the SerializationInfo parameter.

Parameters
infoObject to contain the serialized data.

Implements Csla.Serialization.Mobile.IMobileObject.

Definition at line 352 of file SerializationInfo.cs.

◆ GetValue< T >()

T Csla.Serialization.Mobile.SerializationInfo.GetValue< T > ( string  name)

Gets a value from the list of fields.

Template Parameters
TType to which the value should be coerced.
Parameters
nameName of the field.
Returns

Definition at line 293 of file SerializationInfo.cs.

◆ SetChildren()

void Csla.Serialization.Mobile.SerializationInfo.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.

Parameters
infoObject containing the serialized data.
formatterReference to the formatter performing the deserialization.

Implements Csla.Serialization.Mobile.IMobileObject.

Definition at line 410 of file SerializationInfo.cs.

◆ SetState()

void Csla.Serialization.Mobile.SerializationInfo.SetState ( SerializationInfo  info)

Method called by MobileFormatter when an object should be deserialized.

The data should be deserialized from the SerializationInfo parameter.

Parameters
infoObject containing the serialized data.

Implements Csla.Serialization.Mobile.IMobileObject.

Definition at line 393 of file SerializationInfo.cs.

Property Documentation

◆ Children

Dictionary<string, ChildData> Csla.Serialization.Mobile.SerializationInfo.Children
getset

Dictionary containing child reference data.

Definition at line 198 of file SerializationInfo.cs.

◆ ReferenceId

int Csla.Serialization.Mobile.SerializationInfo.ReferenceId
getset

Reference number for this object.

Definition at line 224 of file SerializationInfo.cs.

◆ TypeName

string Csla.Serialization.Mobile.SerializationInfo.TypeName
getset

Assembly-qualified type name of the object being serialized.

Definition at line 230 of file SerializationInfo.cs.

◆ Values

Dictionary<string, FieldData> Csla.Serialization.Mobile.SerializationInfo.Values
getset

Dictionary containg field data.

Definition at line 209 of file SerializationInfo.cs.