Could not understand lines of code after decompiling a dll
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.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Mangesh GRank #294 · 8.6K reputationPosted Dec 6, 2016, 8:10 AM EST
Nepethya RanaRank #4,361 · 348 reputationPosted Dec 7, 2016, 6:53 AM EST