/// <summary> /// Saves the changes to the item's view state to an object. /// </summary> /// <returns>The object that contains the view state changes.</returns> protected override object SaveViewState() { object baseState = base.SaveViewState(); object list = _List.SaveVS(); if (list != null) { return(new object[2] { baseState, list }); } else if (baseState != null) { return(new object[1] { baseState }); } return(null); }