Пример #1
0
 void Serialization.ICompactSerializable.Deserialize(Serialization.IO.CompactReader reader)
 {
     if (reader.ReadByte() == 1)
     {
         _typeName = new Reflection.TypeName();
         _typeName.Deserialize(reader);
     }
     else
     {
         _typeName = null;
     }
     _version = reader.ReadDateTime();
 }
Пример #2
0
        /// <summary>
        /// Deserializa os dados da instancia.
        /// </summary>
        /// <param name="reader"></param>
        public override void Deserialize(Serialization.IO.CompactReader reader)
        {
            _typeName = new Reflection.TypeName();
            _typeName.Deserialize(reader);
            var length = reader.ReadInt16();
            var values = new object[length];

            for (var i = 0; i < length; i++)
            {
                var type = (PrimitiveTypes)reader.ReadByte();
                values[i] = Deserialize(reader, type);
            }
            SetValues(values);
        }
Пример #3
0
 /// <summary>
 /// Deserializa os dados da instancia.
 /// </summary>
 /// <param name="reader"></param>
 void Colosoft.Serialization.ICompactSerializable.Deserialize(Serialization.IO.CompactReader reader)
 {
     if (reader.ReadByte() == 1)
     {
         _typeName = new Reflection.TypeName();
         _typeName.Deserialize(reader);
     }
     else
     {
         _typeName = null;
     }
     _version = reader.ReadDateTime();
     if (reader.ReadByte() == 1)
     {
         _result = new Query.QueryResult();
         ((Colosoft.Serialization.ICompactSerializable)_result).Deserialize(reader);
     }
     else
     {
         _result = new Query.QueryResult();
     }
 }