double value1 = 0.0; double[] valueArray = new double[1]; valueArray[0] = value1;
double value1 = 0.0; double[] valueArray = new double[]{value1};
public static T[] ToArray<T>(T t) { return new T[] { t }; }
public static Array ToArray(Object o) { Array result = Array.CreateInstance(o.GetType(), 1); result.SetValue(o, 0); return result; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)