public ListXD Copy() { ListXD copy = new ListXD(); CopyRecursion(listGenMain, copy.listGenMain); return(copy); }
/// <summary> /// Copy an array. /// </summary> /// <param name="arrayName">The array name.</param> /// <returns>A copy of the array.</returns> public static Primitive Copy(Primitive arrayName) { if (!listXMap.TryGetValue(arrayName, out listXD)) { return(""); } ListXD ListXDCopy = listXD.Copy(); listXMap[ListXDCopy.Name] = ListXDCopy; return(ListXDCopy.Name); }
/// <summary> /// Create a new array. /// This is a general array that can be used as a 1D, 2D, 3D or higher dimension array, depending on the data set. /// </summary> /// <returns>The array name.</returns> public static Primitive Add() { listXD = new ListXD(); listXMap[listXD.Name] = listXD; return(listXD.Name); }