Josh30 on Mon, 28 Jul 2014 18:29:16


I am wondering if it is possible in c# to make an attribute for a class that specifies an owner for that class, and if that attribute is missing make it so the build fails.

Thank you!



Anna Cc on Tue, 29 Jul 2014 13:17:26


Do you want to extend the C# language?

If you just need to create an attribute for a class, you can refer to the similar document below.

Creating Custom Attributes (C# and Visual Basic)

You can create your own custom attributes by defining an attribute class, a class that derives directly or indirectly from Attribute, which makes identifying attribute definitions in metadata fast and easy. 

Best regards,

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.