public override IEnumerable <INodeFactory> GetNodeChildren(IContext context) { foreach (CodeElement e in _codeModel.CodeElements) { var factory = FileCodeModelNodeFactory.CreateNodeFactoryFromCodeElement(e); yield return(factory); } }
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); }
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); }