Hi everybody, I'm trying to programmatically assign integer user-defined values for an array field of a tuple using the .NET APIs, but got stuck. I'm pretty sure the method I should use is ITupleBuffer.SetIntMapValue(), but the second argument taken is an IIntMap that I have no clue how to get.
For instance, for a string or integer field I just use the methods SetIntValue() or SetSymbolValue() whose second arguments are integers and strings. For a set field, I would use SetIntCollectionValue(), whose second argument is an IIntCollection that I can compute from CP.IntSet() that takes an int as parameter.
Unfortunately, there is no CP.IntMap(). The closer I can get is a CP.IntArray() that I can manually fill with the values in my integer array, but the IntArray doesn't implement the IIntMap interface.
What's the standard practice I should follow?