.NET Reflection Helper API?

When using reflection, we usually simply were the base API System.Reflection, but I wonder if anyone knows of a good layer, “wrapper” or an API that has a more “schema approach”? (for example, like a representation of the DB schema of code generators)

It is intended for use in code generators such as T4 templates, etc.

+3
source share
3 answers

See Overview of Descriptor Description . Most people use it for design convenience, because it allows you to create new / hide existing properties or completely change the way the control is presented in the Visual Studio properties window. However, it works as well as development time. For example, when you call TypeDescriptor.GetProperties, you get all the properties of the type or object (instance-specific properties) from any TypeDescriptorProvider that is registered for this type / object. You can link them, and there is a default provider that uses the old reflection technology if nothing more specific is registered.

, GetProperties , , , , .

+1
+1

Are you just looking at creating schemas for existing DLLs?

.NET Reflector can help you with what you need. There are heaps of plugins for various visualization tools, I have not tried them all ...

0
source

Source: https://habr.com/ru/post/1748280/


All Articles