/// <inheritdoc/> public override void Deserialize(BufferReader reader, ref DepthImage target, SerializationContext context) { var depthCompressionMethod = DepthCompressionMethod.None; if (this.Schema.Version >= 4) { Serializer.Deserialize(reader, ref depthCompressionMethod, context); } if (depthCompressionMethod == DepthCompressionMethod.None) { base.Deserialize(reader, ref target, context); } else { depthImageCompressor.Deserialize(reader, ref target, context); } }