Answer the question
In order to leave comments, you need to log in
Are C# attributes the same annotations from Java?
As I understand it, in the C# language , attributes are the same annotations from Java
. Am I right?
And another question:
is there any difference in the order of their assignment,
i.e. if 2 attributes are swapped, can anything go wrong???
Answer the question
In order to leave comments, you need to log in
1) In general, yes - and this and that metadata that can be pulled out by reflection.
2) It may or may not be. It depends on the specific case, for some attributes the order does not matter, for some it does (in asp.net MVC, for example, if you swap a couple of filters, then something can still go wrong)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question