A good and complete tutorial about reflection in .

2020-02-09 01:34发布

the question almost says it all. I think all of you know about the visual studio designer, and how it can show any property of an object, regardless of its type, provided that the property is allowed to be shown in the designer.

I am working on a function that could achieve the same thing, but for this, I need a complete tutorial about reflection, so that this function can treat every type of property.

Any suggestions?

2条回答
叼着烟拽天下
2楼-- · 2020-02-09 01:56

Here some info:

However, I'd recommend a bit different although harder approach. If you really want to completely understand the topic, that's what you need.

Read Standard ECMA-335 Partition II: Metadata Definition and Semantics which explains how .NET uses its metadata

Then read and understand some code that reads this metadata. Mono.Cecil would be a good candidate.

That will completely cover the Reflection topic

查看更多
登录 后发表回答