How can I select tree nodes independently from their nesting level?
Id = node;
Data = data;
TreeNode rootNode =
↑ Return to Top
IEnumerable<T> source, Func<T, IEnumerable<T>> selector)
=> t.Data > 30).ToList();
databaseResult = context.TreeNodes
xmlElements = XDocument.Load(
var result =
Carsten Siemens edited Revision 4. Comment: Fixed misspelling
Can you please explain the usage of the word contraindication www.thefreedictionary.com/contraindication in the context of this article?
according to Merriam-Webster - www.merriam-webster.com/.../contraindication - a contraindication is
"something (as a symptom or condition) that makes a particular treatment or procedure inadvisable".
Let’s map this definition to the article:
* The “treatment” is the class LinqTreeExtension which is explained in the “Solution” section.
* A condition which makes this “treatment” inadvisable is for example a cyclic graph.
The term contraindication is most often used by physicians and pharmacists. But (at least in Germany) it is not limited to medicine.
I like a figurative language, but I’m not a native speaker. You may have better synonyms.
Naomi, I really appreciate your careful editing. Thank you!
I am also not a native speaker, so when I saw that word, I had to check it up. It may be nice if an English native speaker will verify if it is indeed permissible to be used in this context. That's why I originally changed it to more often and commonly used contradiction although may be just Pros and Cons may be used
Naomi is correct, it's ConTRADiction. ConTRAINdication is a rarely used medical term.
Simple typo IMO.
"Contradiction" is very much the right word.