public ListInfoCollection GetListInfoCollection(string ListName, string ParentKey, int PortalID) { IList lists = new ListInfoCollection(); foreach (KeyValuePair <string, ListInfo> listPair in GetListInfoDictionary(PortalID)) { ListInfo list = listPair.Value; if ((list.Name == ListName || string.IsNullOrEmpty(ListName)) && (list.ParentKey == ParentKey || string.IsNullOrEmpty(ParentKey)) && (list.PortalID == PortalID || PortalID == Null.NullInteger)) { lists.Add(list); } } return((ListInfoCollection)lists); }
public ListInfoCollection GetListInfoCollection(string ListName, string ParentKey, int PortalID) { IList lists = new ListInfoCollection(); foreach (KeyValuePair<string, ListInfo> listPair in GetListInfoDictionary(PortalID)) { ListInfo list = listPair.Value; if ((list.Name == ListName || string.IsNullOrEmpty(ListName)) && (list.ParentKey == ParentKey || string.IsNullOrEmpty(ParentKey)) && (list.PortalID == PortalID || PortalID == Null.NullInteger)) { lists.Add(list); } } return (ListInfoCollection)lists; }