What's reflection in CSharp all about?

Published: 19 August 2024
on channel: Dev Leader
448
18

What's reflection in CSharp all about?

At compile time, we know the types of the objects that we're dealing with.

But what if you dynamically want to look up information about a type?

What if you want to look up a type by name at runtime?

Reflection is a tool available to us in DotNet that allows us to look at the meta information of types.

We can:
Examine type members
Invoke methods by their name
Create instances of types we didn't know at compile time

We can even do things like set new valuables to private readonly variables!

Reflection is powerful -- and just because you CAN doesn't always mean that you SHOULD!

Check out the full video:
   • It's EASY - Check Type Data with Refl...  

----
📨 Sign up for my FREE email newsletter:
https://subscribe.devleader.ca
🗣️ Share with your network!

#SoftwareEngineer #SoftwareEngineers #SoftwareEngineering


Watch video What's reflection in CSharp all about? online without registration, duration hours minute second in high quality. This video was added by user Dev Leader 19 August 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 448 once and liked it 18 people.