✅ Safe type casting with LINQ?
As part of an octree I'm implementing, I have this line:
popped enumerates type
Node
. Type Leaf
is a child class of Node
.
My question is, can I do this Where
and Cast
in a single operation which is type safe or does that line look correct as-is?4 Replies