public void addParentId(AnyObjectId additionalParent) {if (parentIds.length == 0) {setParentId(additionalParent);} else {ObjectId[] newParents = new ObjectId[parentIds.length + 1];System.arraycopy(parentIds, 0, newParents, 0, parentIds.length);newParents[parentIds.length] = additionalParent.copy();parentIds = newParents;}}
public virtual void AddParentId(AnyObjectId additionalParent){if (parentIds.Length == 0){SetParentId(additionalParent);}else{ObjectId[] newParents = new ObjectId[parentIds.Length + 1];System.Array.Copy(parentIds, 0, newParents, 0, parentIds.Length);newParents[parentIds.Length] = additionalParent.Copy();parentIds = newParents;}}