示例#1
0
        public void SetRepeat(SqlInt32 index, SqlGradAngle value, SqlInt32 count)
        {
            int indexValue = !index.IsNull ? index.Value : count.IsNull ? 0 : _list.Count - count.Value;
            int countValue = !count.IsNull ? count.Value : index.IsNull ? 0 : _list.Count - index.Value;

            _list.SetRepeat(indexValue, value.IsNull ? default(GradAngle?) : value.Value, countValue);
        }
示例#2
0
 public void SetDimItem(SqlGradAngle value, SqlInt32Array indices)
 {
     if (!indices.IsNull)
     {
         _arrayInfo.SetValue <GradAngle?>(_array, !value.IsNull ? value.Value : default(GradAngle?), indices.Array.Enumerate(0, indices.Length.Value).Select(t => t.Value).ToArray());
     }
 }
示例#3
0
 public void Accumulate(SqlGradAngle input)
 {
     if (_list != null)
     {
         _list.Add(!input.IsNull ? input.Value : default(GradAngle?));
     }
 }
示例#4
0
 public void SetItem(SqlGradAngle value, SqlInt32 index)
 {
     if (!index.IsNull)
     {
         _array[index.Value] = !value.IsNull ? value.Value : default(GradAngle?);
     }
 }
示例#5
0
        public void FillRange(SqlGradAngle value, SqlInt32 index, SqlInt32 count)
        {
            int indexValue = !index.IsNull ? index.Value : count.IsNull ? 0 : _array.Length - count.Value;
            int countValue = !count.IsNull ? count.Value : index.IsNull ? 0 : _array.Length - index.Value;

            _array.Fill(!value.IsNull ? value.Value : default(GradAngle?), indexValue, countValue);
        }
示例#6
0
        public void AddRepeat(SqlGradAngle value, SqlInt32 count)
        {
            if (count.IsNull)
            {
                return;
            }

            _list.AddRepeat(value.IsNull ? default(GradAngle?) : value.Value, count.Value);
        }
示例#7
0
        public void SetItem(SqlInt32 index, SqlGradAngle value)
        {
            if (index.IsNull)
            {
                return;
            }

            _list[index.Value] = value.IsNull ? default(GradAngle?) : value.Value;
        }
示例#8
0
 public void SetFlatItem(SqlGradAngle value, SqlInt32 index)
 {
     if (!index.IsNull)
     {
         new ArrayIndex(_arrayInfo)
         {
             FlatIndex = index.Value
         }
     }
示例#9
0
        public void InsertRepeat(SqlInt32 index, SqlGradAngle value, SqlInt32 count)
        {
            if (count.IsNull)
            {
                return;
            }

            int indexValue = !index.IsNull ? index.Value : _list.Count;

            _list.InsertRepeat(indexValue, value.IsNull ? default(GradAngle?) : value.Value, count.Value);
        }
示例#10
0
 public void InsertItem(SqlInt32 index, SqlGradAngle value)
 {
     _list.Insert(index.IsNull ? _list.Count : index.Value, value.IsNull ? default(GradAngle?) : value.Value);
 }
示例#11
0
 public void AddItem(SqlGradAngle value)
 {
     _list.Add(value.IsNull ? default(GradAngle?) : value.Value);
 }
示例#12
0
        public static SqlGradAngleCollection Parse(SqlString s)
        {
            if (s.IsNull)
            {
                return(Null);
            }


            return(new SqlGradAngleCollection(SqlFormatting.ParseCollection <GradAngle?>(s.Value,
                                                                                         t => !t.Equals(SqlFormatting.NullText, StringComparison.InvariantCultureIgnoreCase) ? SqlGradAngle.Parse(t).Value : default(GradAngle?))));
        }
示例#13
0
 public void RemoveItem(SqlGradAngle value)
 {
     _list.Remove(value.IsNull ? default(GradAngle?) : value.Value);
 }