-
To me, it looks like the But how is it used for performing a runtime The following results in a compile time error: public override IEnumerable<TokenNode> Ancestors(Type nodeType)
{
for (TokenNode? node = Parent;node is not null;node = node.Parent) if (node is nodeType) yield return node;
}
// CS0029: Cannot implicitly convert type 'System.Type' to 'TokenNode' |
Beta Was this translation helpful? Give feedback.
Answered by
333fred
Dec 23, 2024
Replies: 1 comment
-
It cannot be used here. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
CyrusNajmabadi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It cannot be used here.