Exemplo n.º 1
0
		public override object Read(ByteArrayBuffer a_bytes)
		{
			int key = a_bytes.ReadInt();
			object obj = null;
			if (_object is TreeInt)
			{
				obj = new TreeReader(a_bytes, (IReadable)_object).Read();
			}
			else
			{
				obj = ((IReadable)_object).Read(a_bytes);
			}
			return new Db4objects.Db4o.Internal.TreeIntObject(key, obj);
		}
Exemplo n.º 2
0
        public override object Read(ByteArrayBuffer a_bytes)
        {
            var    key = a_bytes.ReadInt();
            object obj = null;

            if (_object is TreeInt)
            {
                obj = new TreeReader(a_bytes, (IReadable)_object).Read();
            }
            else
            {
                obj = ((IReadable)_object).Read(a_bytes);
            }
            return(new TreeIntObject(key, obj));
        }