private static IHeapConnector CreateNumRectArray(IHeapManagerInternals heapMgr, int count) { IHeapConnector retObj = heapMgr.NewArray(heapMgr.GetHeapType("numrect").ID, count); for (int i = 0; i < count; i++) { ((IValueWrite <RCNumRectangle>)retObj.AccessArrayItem(i)).Write(new RCNumRectangle(i, i + 1, i + 2, i + 3)); } return(retObj); }
private static IHeapConnector CreateNumArray(IHeapManagerInternals heapMgr, int count) { IHeapConnector retObj = heapMgr.NewArray(heapMgr.GetHeapType("num").ID, count); for (int i = 0; i < count; i++) { ((IValueWrite <RCNumber>)retObj.AccessArrayItem(i)).Write((RCNumber)i); } return(retObj); }