コード例 #1
0
 public override IEnumerable <INodeFactory> GetNodeChildren(IContext context)
 {
     foreach (CodeElement e in _codeModel.CodeElements)
     {
         var factory = FileCodeModelNodeFactory.CreateNodeFactoryFromCodeElement(e);
         yield return(factory);
     }
 }
コード例 #2
0
        public override IEnumerable <INodeFactory> GetNodeChildren(IContext context)
        {
            List <INodeFactory> factories = new List <INodeFactory>();

            foreach (CodeElement e in _element.Children)
            {
                factories.Add(FileCodeModelNodeFactory.CreateNodeFactoryFromCodeElement(e));
            }
            return(factories);
        }
コード例 #3
0
        public override IEnumerable <INodeFactory> GetNodeChildren(IContext context)
        {
            List <INodeFactory> factories = new List <INodeFactory>();

            // enumerable Members instead of Children - srsly??
            foreach (CodeElement e in _namespace.Members)
            {
                factories.Add(FileCodeModelNodeFactory.CreateNodeFactoryFromCodeElement(e));
            }
            return(factories);
        }