public static SqlBinary MergeSlots(SqlBinary oldSlots, SqlInt16 newSnap, SqlInt16 newSlot) { //short[] slots = oldSlots.ToArray(); SqlSmallIntArray slotArray = new SqlSmallIntArray(oldSlots); short[] slots = slotArray.ToArray(); slots[(short) newSnap] = (short) newSlot; return SqlSmallIntArray.FromArray(slots).ToSqlBuffer(); }
public void Write(SqlSmallIntArray a) { SqlBinary b = a.ToSqlBuffer(); this.Write(b); }