public static void WriteListSection(UdnWriter Writer, string SectionId, string SectionTitle, IEnumerable<APIFilter> Categories) { APIFilter[] CategoryArray = Categories.ToArray(); if (CategoryArray.Length > 0) { Writer.EnterSection(SectionId, SectionTitle); Writer.WriteFilterList(CategoryArray.Select(x => x.GetFilterListItem()).ToArray()); Writer.LeaveSection(); } }
public static void WriteListSection(UdnWriter Writer, string SectionId, string SectionTitle, IEnumerable <APIFilter> Categories) { APIFilter[] CategoryArray = Categories.ToArray(); if (CategoryArray.Length > 0) { Writer.EnterSection(SectionId, SectionTitle); Writer.WriteFilterList(CategoryArray.Select(x => x.GetFilterListItem()).ToArray()); Writer.LeaveSection(); } }
public void Write(UdnWriter Writer, int Depth, Dictionary<string, APIModule> Modules) { if (!IsEmpty) { // Find all the major modules in this category if (MajorModules.Count > 0) { Writer.WriteList("Name", "Description", MajorModules.Select(x => Modules[x].GetListItem())); } // Write all the minor modules in this category if (MinorModules.Count > 0) { Writer.EnterRegion("syntax"); Writer.WriteFilterList(MinorModules.Select(x => Modules[x].GetFilterListItem()).ToArray()); Writer.LeaveRegion(); } // Write all the subcategories foreach (APIModuleCategory Category in Categories) { Writer.WriteHeading(Depth, Category.Name); Writer.WriteLine(); Category.Write(Writer, Depth + 1, Modules); } } }