The code fails to build in projects where nullable warnings are enabled and warnings are treated as errors.
CircularBuffer.cs(237,29,237,39): error CS8601: Possible null reference assignment.
CircularBuffer.cs(248,31,248,41): error CS8601: Possible null reference assignment.
CircularBuffer.cs(279,28,279,41): error CS8604: Possible null reference argument for parameter 'sourceArray' in 'void Array.Copy(Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length)'.
CircularBuffer.cs(314,34,314,47): error CS8602: Dereference of a possibly null reference.
The code fails to build in projects where nullable warnings are enabled and warnings are treated as errors.