Is .Net attribute feature used at compile-time or run-time or both?

前端 未结 4 1709
情歌与酒
情歌与酒 2021-01-04 10:53

In .Net, is the attribute feature used at compile-time or run-time or both? Can you give me some examples?

4条回答
  •  臣服心动
    2021-01-04 11:39

    Attributes are compiled into the code at compile time, but they are often used at runtime as triggers to do things differently.

提交回复
热议问题