Some more Linq fun

GetAllChildren as a one-line, for a bit of fun:

public IEnumerable<DialogueNode> GetAllChildren(DialogueNode parent) => from node in _nodes where parent.Children.Contains(node.UniqueId) select node;

Privacy & Terms