Can attributes be added dynamically in C#?

后端 未结 10 825
别跟我提以往
别跟我提以往 2020-11-22 14:32

Is it possible to add attributes at runtime or to change the value of an attribute at runtime?

10条回答
  •  情话喂你
    2020-11-22 14:49

    In Java I used to work around this by using a map and implementing my own take on Key-Value coding.

    http://developer.apple.com/documentation/Cocoa/Conceptual/KeyValueCoding/KeyValueCoding.html

提交回复
热议问题