shuff1203 wrote:

Ya, but he did answer the question, that is a way to do it with just oneline of code in

Well, sort of. The inlined expression in C# does a very different control path to the thing he showed there, which can experience considerable slowdown, since reflection is a relatively expensive process (computationally speaking), and is never a good idea if there's an alternative.