Thank you for this. this has finally answered many questions I had about this particular subject. I am however trying to convert it to VB.Net and am having some issues. Vb doesn't like declaring things "inline"

I have you code working great in CS however it would be amazing if there was a more concrete example in Is there anyway this is possible?