i searched Google a lot but i am having a hard time understanding Reflection and especially when to use it so i decided to come here.
English is not my first language so forgive me for my humble mistakes
I will first send this link with an example on Reflection so i can ask my question better:
https://csharp.net-tutorials.com/reflection/introduction/
I don't understand the differente of doing what is on the example, and creating a variable X, giving it a value, and then for example make X receive a Console.ReadLine() with a new value.
Basically all the examples i see says that i can do with Reflection something i could do "in a normal way" but in runtime, as far as i know giving a new value to X with a Console.ReadLine() is something done in runtime. (please if i am understanding runtime wrong or i am missing something can you explain it to me?)
Also if someone can give me some examples with use of Reflection on projects i would really appreciate it so i can understand it better
Aucun commentaire:
Enregistrer un commentaire