void ICborMapReader <MapReaderContext> .ReadMapItem(ref CborReader reader, ref MapReaderContext context) { CborValue key = Read(ref reader); CborValue value = Read(ref reader); context.obj.Add(key, value); }
CborObject?ICborConverter <CborObject?> .Read(ref CborReader reader) { if (reader.ReadNull()) { return(null); } MapReaderContext mapContext = new MapReaderContext(); reader.ReadMap(this, ref mapContext); return(mapContext.obj); }
void ICborMapReader <MapReaderContext> .ReadBeginMap(int size, ref MapReaderContext context) { context.obj = new CborObject(); }