/// <inheritdoc/> public override ConcurrentQueue <T> ConvertFromSurrogate(ref ConcurrentQueueSurrogate <T> surrogate) { if (surrogate.Values is null) { return(null); } else { return(new ConcurrentQueue <T>(surrogate.Values)); } }
/// <inheritdoc/> public override void ConvertToSurrogate(ConcurrentQueue <T> value, ref ConcurrentQueueSurrogate <T> surrogate) { if (value is null) { surrogate = default; return; } else { surrogate = new ConcurrentQueueSurrogate <T> { Values = new Queue <T>(value) }; } }