public TValue Read(Stream stream) { var valueHolder = new ValueHolder <TValue>(); br_.SetStream(stream); ReaderAgentGenerator <InternalStreamReader, TValue> .Run(br_, valueHolder); return(valueHolder.Value); }
public TValue Read(IDataReader dr) { var valueHolder = new ValueHolder <TValue>(); dr_.SetDataReader(dr); ReaderAgentGenerator <InternalDataReader, TValue> .Run(dr_, valueHolder); return(valueHolder.Value); }
public TValue Read(BinaryReader br) { var valueHolder = new ValueHolder <TValue>(); br_.SetBinaryReader(br); ReaderAgentGenerator <InternalBinaryReader, TValue> .Run(br_, valueHolder); return(valueHolder.Value); }