Resources for Using Reflection and Attributes

Are there any good resources that explain the attributes and thoughts and their many uses in depth?

I am particularly interested in best practices, i.e. when it would be useful or appropriate to use attributes and reflection to solve specific problems with the computer.

+3
source share
3 answers

I do not know a good comprehensive resource. In my experience, the best way to learn is to face a situation that cannot be resolved without it (at least not easily). Therefore, if you know the basic situations in which reflection and attributes make work easier, you will find out when you need to study them.

: , , .

, , - - , , , . , // , .

: , .

. IConverter. . , , ?

  • , , .
  • , , , .

, - , , . , , . :

[HandlesField("FieldName")]
public class FooFieldConverter : IConverter
+3

, , , . , - . . - , .

- Visual Studio Design Surface WCF. , [], [] .. ... Visual Studio . , [ServiceContract], [OperationContract], [DataContract], [DataMember] WCF -... WCF, turn -.

- , . , , , . " " , . . . , ... ... , , , .

, , , , , .

+1

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


All Articles