How do I convert a double[] array to a byte[] array and vice versa?
double[]
byte[]
class Program { static void Main(string[] args) {
double[] array = new double[] { 10.0, 20.0, 30.0, 40.0 }; byte[] convertedarray = array.Select(x => Convert.ToByte(x)).ToArray();