Source/Csla/Serialization/Mobile/MobileFormatter.cs
/// <summary>
/// Deserializes a byte stream into an object.
/// </summary>
/// <param name="data">
/// Byte array containing the object's serialized
/// data.
/// </param>
/// <returns>
/// An object containing the data from the
/// byte stream. The object must implement
/// IMobileObject to be deserialized.
/// </returns>
Deserializes a byte stream into an object.
Deserializes a byte stream into an object .
public static object Deserialize(byte[] data)
    {
      if (data == null)
        return null;
      using (var buffer = new System.IO.MemoryStream(data))
      {
        var formatter = new MobileFormatter();
        return formatter.Deserialize(buffer);
      }
    }
public static object Deserialize ( byte [ ] data ) { if ( data == null ) return null ; using ( var buffer = new System . IO . MemoryStream ( data ) ) { var formatter = new MobileFormatter ( ) ; return formatter . Deserialize ( buffer ) ; } }
Deserializes a byte stream into an object.
Deserializes a byte stream into an object .
An object containing the data from the
byte stream. The object must implement
IMobileObject to be deserialized.
An object containing the data from the byte stream . The object must implement IMobileObject to be deserialized .
data
byte[]
Byte array containing the object's serialized
data.
Byte array containing the object ' s serialized data .