public void ReleaseSerializedKeyValue() { // Make sure that the buffer cannot be disposed twice (not good for buffer pooling) SerializedKeyValue?.Dispose(); SerializedKeyValue = null; }