Nepethya Rana

Nepethya Rana

  • NA
  • 335
  • 151.3k

could not understand lines of code after decompiling a dll

Dec 6 2016 11:50 AM
I decompiled the one dll and exported to Project/Solution. I tried to understand lines of codes but i could not understand following lines. Type type; object objectValue = RuntimeHelpers.GetObjectValue(type.GetField("processInfo", BindingFlags.IgnoreCase | BindingFlags.Instance | BindingFlags.NonPublic).GetValue((object) Process.GetCurrentProcess())); strFrom = StringType.FromObject(objectValue.GetType().GetField("processName", BindingFlags.IgnoreCase | BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic).GetValue(RuntimeHelpers.GetObjectValue(objectValue))); Logger.write("process: " + strFrom, 1); i did not understand what these lines of codes are doing. Could you please explain. Thank you.

Answers (2)