What's reflection in CSharp all about?

Опубликовано: 19 Август 2024
на канале: 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


Смотрите видео What's reflection in CSharp all about? онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Dev Leader 19 Август 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 448 раз и оно понравилось 18 людям.