User Tools

Site Tools


notes:csharp:attributes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
notes:csharp:attributes [2019/01/31]
leszek
notes:csharp:attributes [2019/01/31] (current)
leszek
Line 21: Line 21:
 You can specify multiple ''​%%Conditional%%''​ attributes. They are combined with OR: You can specify multiple ''​%%Conditional%%''​ attributes. They are combined with OR:
 <code csharp> <code csharp>
-// A method with a Conditional attribute must have a return type of void.+// A method with a Conditional attribute must have a return type of void. Also, it should not take any parameters.
 [Conditional("​DEBUG"​),​ Conditional("​TRACE"​)] [Conditional("​DEBUG"​),​ Conditional("​TRACE"​)]
 private void Check(); private void Check();
notes/csharp/attributes.txt ยท Last modified: 2019/01/31 by leszek