public override void SetElements(int[] indices, HTupleElements elements) { if (indices == null || indices.Length == 0) { return; } int[] iarr = elements.IArr; if (iarr.Length == indices.Length) { for (int index = 0; index < indices.Length; ++index) { this.i[indices[index]] = iarr[index]; } } else { if (iarr.Length != 1) { throw new HTupleAccessException((HTupleImplementation)this, "Input parameter 2 ('Value') must have one element or the same number of elements as parameter 1 ('Index')"); } for (int index = 0; index < indices.Length; ++index) { this.i[indices[index]] = iarr[0]; } } }
public virtual void SetElements(int[] indices, HTupleElements elements) { if (indices != null && indices.Length != 0) { throw new HTupleAccessException(this); } }