public T ReadValue(IValueReader valueReader) { var collectionRW = new CollectionRW <T>(); valueReader.ReadArray(collectionRW); return(collectionRW.content); }
public void WriteValue(IValueWriter valueWriter, T value) { if (value == null) { valueWriter.DirectWrite(null); return; } var collectionRW = new CollectionRW <T, TValue>(); collectionRW.Initialize(value); valueWriter.WriteArray(collectionRW); }
public void WriteValue(IValueWriter valueWriter, T value) { if (value is null) { valueWriter.DirectWrite(null); return; } var collectionRW = new CollectionRW <T> { content = value }; valueWriter.WriteArray(collectionRW); }