Ejemplo n.º 1
0
 public virtual object ReadAtCurrentSeekPosition(ITypeHandler4 handler)
 {
     if (Handlers4.UseDedicatedSlot(this, handler))
     {
         return(ReadObject());
     }
     return(Handlers4.ReadValueType(this, handler));
 }
 public virtual void WriteObjectWithCurrentState(ITypeHandler4 handler, object obj
                                                 )
 {
     if (Handlers4.UseDedicatedSlot(this, handler))
     {
         WriteObject(obj);
     }
     else
     {
         if (obj == null)
         {
             WriteNullReference(handler);
         }
         else
         {
             CreateIndirectionWithinSlot(handler);
             handler.Write(this, obj);
         }
     }
 }