c# - MethodBase.GetCurrentMethod() reflection line explanation -


i'm transitioning c++ c# , have method call that's confusing me. think might able guess does, i'd appreciate expert telling me straight:

wdresult returnvalue = (wdresult)invoke(     (methodinfo)methodbase.getcurrentmethod(),     new object[] { request, loadtype }); 

it looks me it's using reflection infoke method that's being invoked. can't understand why 1 if case though. also, why reflection instead of recursion call? note in code, different overload not being used in call. parameters request , loadtype pretty passed straight code in first line of function appears in.

that's calling custom invoke() method, takes methodinfo.
isn't standard reflection.

look in invoke() method see why they're doing that.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -