Ejemplo n.º 1
0
        public AuxiliaryWriter <TKey> ReadValue(IValueReader valueReader)
        {
            var auxiliaryWriter = new AuxiliaryWriter <TKey>();

            if (valueReader is IValueFiller <TKey> tReader)
            {
                tReader.FillValue(auxiliaryWriter);
            }
            else if (IsArray)
            {
                valueReader.ReadArray(auxiliaryWriter.As <int>());
            }
            else
            {
                valueReader.ReadObject(auxiliaryWriter.As <string>());
            }

            return(auxiliaryWriter);
        }
Ejemplo n.º 2
0
 public void WriteValue(IValueWriter valueWriter, AuxiliaryWriter <TKey> value)
 {
     throw new NotSupportedException("Unable write a writer.");
 }