示例#1
0
 public static ICategoryEntrySymbol CreateEntry(
     ISymbol containingSymbol,
     CategoryEntryNode item,
     DiagnosticBag diagnostics)
 {
     return(new CategoryEntrySymbol(containingSymbol, item, diagnostics));
 }
示例#2
0
 public static CategoryLinkNode CategoryLink(CategoryEntryNode categoryEntry, string id = null)
 {
     return(CategoryLink(
                id: id ?? NewId(),
                name: categoryEntry.Name,
                publicationId: categoryEntry.PublicationId,
                page: categoryEntry.Page,
                hidden: false,
                targetId: categoryEntry.Id,
                primary: false));
 }
示例#3
0
 public static CategoryNode Category(CategoryEntryNode categoryEntry, string id = null)
 {
     return(Category(
                id: id ?? NewId(),
                categoryEntry.Name,
                categoryEntry.Id,
                entryGroupId: null,
                categoryEntry.PublicationId,
                categoryEntry.Page,
                primary: false));
 }