Is there any way to combine the following two lines into a single statement?
Func<XmlNode> myFunc = () => { return myNode; };
XmlNode myOtherNode = myFunc();
I've been trying things like the below but can't get it to work and can't determine from the documentation whether it should work or not?
XmlNode myOtherNode = ((Func<XmlNode>) () => { return myNode; })();