hi this is my first answer
you must create a new ResultBuffer and use your new TypedValue to create one. Because AsArray returns and array of TypedValues that are copies of the ones in ResultBuffer.
maybe something like this :
ResultBuffer newResultBuffer = new ResultBuffer();
TypedValue[] arrTypedValue = rb.AsArray();
for(int i = 0; i < arrTypedValue.Length ; i++)
{
if (i == myIndex)
{
newResultBuffer.Add(new TypedValue((int)DxfCode.something,something));
}
else
{
newResultBuffer.Add(arrTypedValue
);
}
}
Hope this helps...