Source/Csla/Core/ManagedObjectBase.cs
/// <summary>
/// Override this method to manually serialize child
/// objects into the serialization stream.
/// </summary>
/// <param name="info">Serialization info.</param>
/// <param name="formatter">Reference to the SerializationFormatterFactory.GetFormatter().</param>
Override this method to manually serialize child
objects into the serialization stream.
Override this method to manually serialize child objects into the serialization stream .
protected override void OnSetChildren(SerializationInfo info, MobileFormatter formatter)
    {
      if (info.Children.ContainsKey("_fieldManager"))
      {
        int referenceId = info.Children["_fieldManager"].ReferenceId;
        _fieldManager = (FieldDataManager)formatter.GetObject(referenceId);
      }
      base.OnSetChildren(info, formatter);
    }
protected override void OnSetChildren ( SerializationInfo info , MobileFormatter formatter ) { if ( info . Children . ContainsKey ( " " ) ) { int referenceId = info . Children [ " " ] . ReferenceId ; _fieldManager = ( FieldDataManager ) formatter . GetObject ( referenceId ) ; } base . OnSetChildren ( info , formatter ) ; }
Override this method to manually serialize child
objects into the serialization stream.
Override this method to manually serialize child objects into the serialization stream .
info
SerializationInfo
None
formatter
MobileFormatter
Reference to the SerializationFormatterFactory.GetFormatter().
Reference to the SerializationFormatterFactory . GetFormatter () .