Rock.Web.UI.Controls.RockDropDownList.SaveViewState C# (CSharp) Method

SaveViewState() protected method

Saves the current view state of the T:System.Web.UI.WebControls.ListControl -derived control and the items it contains.
protected SaveViewState ( ) : object
return object
        protected override object SaveViewState()
        {
            ViewState["ItemAttributes"] = this.Items.OfType<ListItem>().Select( a => a.Attributes.Keys.OfType<string>().ToDictionary( k => k, v => a.Attributes[v] ) ).ToList();
            return base.SaveViewState();
        }