SobekCM.Core.Aggregations.Complete_Item_Aggregation.Browse_By_Pages C# (CSharp) Method

Browse_By_Pages() public method

Read-only list of all the browse objects to appear under the BROWSE BY attached to this item aggregation
These are returned in alphabetical order of the CODE portion of each browse, according to the provided language
public Browse_By_Pages ( Web_Language_Enum Current_Language ) : ReadOnlyCollection
Current_Language Web_Language_Enum Current language used to sort the browses by the label
return ReadOnlyCollection
        public ReadOnlyCollection<Complete_Item_Aggregation_Child_Page> Browse_By_Pages(Web_Language_Enum Current_Language)
        {
            SortedList<string, Complete_Item_Aggregation_Child_Page> otherBrowses = new SortedList<string, Complete_Item_Aggregation_Child_Page>();
            foreach (Complete_Item_Aggregation_Child_Page thisBrowse in childPagesHash.Values.Where(ThisBrowse => ThisBrowse.Browse_Type == Item_Aggregation_Child_Visibility_Enum.Metadata_Browse_By))
            {
                otherBrowses[thisBrowse.Code] = thisBrowse;
            }
            return new ReadOnlyCollection<Complete_Item_Aggregation_Child_Page>(otherBrowses.Values);
        }