When should I use attribute in C#?

后端 未结 5 596
旧巷少年郎
旧巷少年郎 2020-12-08 04:03

I saw some of the examples of utilize attribute, e.g. (as a map for dynamic factory) http://msdn.microsoft.com/en-us/magazine/cc164170.aspx

Just wondering what is th

5条回答
  •  执笔经年
    2020-12-08 04:45

    Consider an attribute as metadata about the method or property it belongs to. It tells something more about a member.

提交回复
热议问题