public static DispatchWrapper[] ObjectArrayToDispatchWrapperArray(object[] Objects) { int ArraySize = 0; ArraySize = Objects.GetUpperBound(0); DispatchWrapper[] d = new DispatchWrapper[ArraySize + 1]; int ArrayIndex = 0; for (ArrayIndex = 0; ArrayIndex <= ArraySize; ArrayIndex++) { d[ArrayIndex] = new DispatchWrapper(Objects[ArrayIndex]); } return d;