public void SetDimItem(SqlBinary value, SqlInt32Array indices) { if (!indices.IsNull) { _arrayInfo.SetValue <Byte[]>(_array, !value.IsNull ? value.Value : null, indices.Array.Enumerate(0, indices.Length.Value).Select(t => t.Value).ToArray()); } }
public void SetDimItem(SqlRange value, SqlInt32Array indices) { if (!indices.IsNull) { _arrayInfo.SetValue <Range?>(_array, !value.IsNull ? value.Value : default(Range?), indices.Array.Enumerate(0, indices.Length.Value).Select(t => t.Value).ToArray()); } }
private static void SetValue(Array array, RegularArrayInfo arrayInfo, T value, bool asRanges, bool zeroBased, int[] transpose, int[] indices) { arrayInfo.SetValue <T>(array, value, asRanges, zeroBased, transpose != null ? Transpose(indices, transpose) : indices); }