public override void CloneDataFromRead(PngChunk other) { PngChunkHIST pngChunkHIST = (PngChunkHIST)other; hist = new int[pngChunkHIST.hist.Length]; Array.Copy(pngChunkHIST.hist, 0, hist, 0, pngChunkHIST.hist.Length); }
public override void CloneDataFromRead(PngChunk other) { PngChunkHIST otherx = (PngChunkHIST)other; hist = new int[otherx.hist.Length]; System.Array.Copy((Array)(otherx.hist), 0, (Array)(this.hist), 0, otherx.hist.Length); }
private void CloneData(PngChunkHIST other) { if (other is null) { throw new ArgumentNullException(nameof(other)); } hist = new int[other.hist.Length]; Array.Copy(other.hist, 0, hist, 0, other.hist.Length); }