10using System.Collections.Specialized;
28 if (this.Contains(key))
33 #region IMobileObject Members
37 foreach (
string key
in this.Keys)
39 object value =
this[key];
47 foreach (
string key
in this.Keys)
49 object value =
this[key];
61 foreach (
string key
in info.
Values.Keys)
63 Add(key, info.
Values[key].Value);
69 foreach (
string key
in info.
Children.Keys)
71 int referenceId = info.
Children[key].ReferenceId;
72 this.Add(key, formatter.
GetObject(referenceId));
Dictionary type that is serializable with the SerializationFormatterFactory.GetFormatter().
object GetValueOrNull(string key)
Get a value from the dictionary, or return null if the key is not found in the dictionary.
Object containing the serialization data for a specific object.
Dictionary< string, FieldData > Values
Dictionary containg field data.
int ReferenceId
Reference number for this object.
Dictionary< string, ChildData > Children
Dictionary containing child reference data.
void AddChild(string name, int referenceId)
Adds a child to the list of child references.
void AddValue(string name, object value)
Adds a value to the serialization stream.
Interface to be implemented by any object that supports serialization by the SerializationFormatterFa...
void GetChildren(SerializationInfo info, MobileFormatter formatter)
Method called by MobileFormatter when an object should serialize its child references.
void GetState(SerializationInfo info)
Method called by MobileFormatter when an object should serialize its data.
void SetChildren(SerializationInfo info, MobileFormatter formatter)
Method called by MobileFormatter when an object should deserialize its child references.
void SetState(SerializationInfo info)
Method called by MobileFormatter when an object should be deserialized.
@ Serializable
Prevents updating or inserting until the transaction is complete.