2
Answers

could not understand lines of code after decompiling a dll

Nepethya Rana

Nepethya Rana

8y
289
1
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)
3
Nitin Sontakke

Nitin Sontakke

NA 11.7k 2.2k 8y
Web technologies are evolving day-by-day and i am not quite up-to-date with the evolution.
 
However, I am pretty certain that you would need some sort of server-side processing. From the way you have framed the question, it seems to me, that you are not quite clear about the request-response model of http protocol on which the web works.
 
Connecting to sql server from javaScript, while might be possible (I am not sure), it is not a very good idea from security perspective, i guess.
 
And where would you put all your business logic?
 
Calling asp.net a front-end would be incorrect. It is a server side technology.
 
You can have all your front-end in HTML5, CSS and Javascript and write a server-side code in WebAPI.
 
You may wish to look into serverless architecture (I still not have looked into!)