常用方法
常用方法
常用方法
常用方法
private static ActionSymbolWithTypeCollection GetActionsFromGraphImpl(this ITypeSymbol graph, PXContext pxContext, bool includeActionsFromInheritanceChain) { if (includeActionsFromInheritanceChain) { return(graph.GetBaseTypesAndThis() .TakeWhile(baseGraph => !baseGraph.IsGraphBaseType()) .Reverse() .SelectMany(baseGraph => baseGraph.GetActionsFromGraphOrGraphExtensionImpl(pxContext))); } else { return(graph.GetActionsFromGraphOrGraphExtensionImpl(pxContext)); } }