常用方法
常用方法
常用方法
常用方法
public void WriteReadDoubleArray() { var ndw = new NetDataWriter(); ndw.PutArray(new[] { 1.1, 2.2, 3.3, 4.4, double.MaxValue, double.MinValue }); var ndr = new NetDataReader(ndw.Data); var readDoubleArray = ndr.GetDoubleArray(); Assert.That( new[] { 1.1, 2.2, 3.3, 4.4, double.MaxValue, double.MinValue }, Is.EqualTo(readDoubleArray).AsCollection); }