Source/Csla/Serialization/Mobile/MobileFormatter.cs
/// <summary>
/// Deserialize an object from XML.
/// </summary>
/// <param name="buffer">
/// Stream containing the serialized XML
/// data.
/// </param>
/// <returns></returns>
Deserialize an object from XML.
Deserialize an object from XML .
object ISerializationFormatter.Deserialize(byte[] buffer)
    {
      if (buffer.Length == 0)
        return null;
      using var serializationStream = new MemoryStream(buffer);
      ICslaReader reader = CslaReaderWriterFactory.GetCslaReader();
      var data = reader.Read(serializationStream);
      return DeserializeAsDTO(data);
    }
object ISerializationFormatter . Deserialize ( byte [ ] buffer ) { if ( buffer . Length == 0 ) return null ; using var serializationStream = new MemoryStream ( buffer ) ; ICslaReader reader = CslaReaderWriterFactory . GetCslaReader ( ) ; var data = reader . Read ( serializationStream ) ; return DeserializeAsDTO ( data ) ; }
Deserialize an object from XML.
Deserialize an object from XML .
None
buffer
byte[]
Stream containing the serialized XML
data.
Stream containing the serialized XML data .