  private static void OnSundayChangedCallBack(DependencyObject sender, DependencyPropertyChangedEventArgs e)    {        BinaryDataGrid c = sender as BinaryDataGrid;        if (c != null)        {            if (_shouldCallBack)            {                if (c.Sunday.Length == 4)                    return;                Days day = (Days)c.dataGrid.Items[0];                byte[] newArray = new byte[c.Sunday.Length + 1];                newArray[0] = Convert.ToByte(0);                c.Sunday.CopyTo(newArray, 1);                day.Value = BitConverter.ToInt32(newArray.Reverse().ToArray(), 0);                _sun = day.Value;            }            else            {                _shouldCallBack = true;                c.Sunday = BitConverter.GetBytes(_sun).Reverse().ToArray().Skip(1).ToArray();            }        }    }    private static void OnMondayChangedCallBack(DependencyObject sender, DependencyPropertyChangedEventArgs e)    {        BinaryDataGrid c = sender as BinaryDataGrid;        if (c != null)        {            if (_shouldCallBack)            {                if (c.Monday.Length == 4)                    return;                Days day = (Days)c.dataGrid.Items[1];                byte[] newArray = new byte[c.Monday.Length + 1];                newArray[0] = Convert.ToByte(0);                c.Monday.CopyTo(newArray, 1);                day.Value = BitConverter.ToInt32(newArray.Reverse().ToArray(), 0);                _mon = day.Value;            }            else            {                _shouldCallBack = true;                c.Monday = BitConverter.GetBytes(_mon).Reverse().ToArray().Skip(1).ToArray();            }        }    }I've got the same code for every week day, how can I generalize this so I don't have 6 duplicates of the code above?
Duplicate code in day of the week event handlers
c#