public SqlRange GetDimItem(SqlInt32Array indices) { return(!indices.IsNull ? _arrayInfo.GetValue <Range?>(indices.Array.Enumerate(0, indices.Length.Value).Select(t => t.Value).ToArray()).With(v => v.HasValue ? v.Value : SqlRange.Null) : SqlRange.Null); }
public SqlBinary GetDimItem(SqlInt32Array indices) { return(!indices.IsNull ? _arrayInfo.GetValue <Byte[]>(indices.Array.Enumerate(0, indices.Length.Value).Select(t => t.Value).ToArray()).With(v => v != null ? new SqlBinary(v) : SqlBinary.Null) : SqlBinary.Null); }
public SqlSexagesimalAngle GetDimItem(SqlInt32Array indices) { return(!indices.IsNull ? _arrayInfo.GetValue <SexagesimalAngle?>(indices.Array.Enumerate(0, indices.Length.Value).Select(t => t.Value).ToArray()).With(v => v.HasValue ? new SqlSexagesimalAngle(v.Value) : SqlSexagesimalAngle.Null) : SqlSexagesimalAngle.Null); }
public SqlBigInteger GetDimItem(SqlInt32Array indices) { return(!indices.IsNull ? _arrayInfo.GetValue <BigInteger?>(indices.Array.Enumerate(0, indices.Length.Value).Select(t => t.Value).ToArray()).With(v => v.HasValue ? new SqlBigInteger(v.Value) : SqlBigInteger.Null) : SqlBigInteger.Null); }
private static T GetValue(Array array, RegularArrayInfo arrayInfo, bool asRanges, bool zeroBased, int[] transpose, int[] indices) { return(arrayInfo.GetValue <T>(array, asRanges, zeroBased, transpose != null ? Transpose(indices, transpose) : indices)); }