Top ".net-attributes" questions

The tag `.Net attributes` describes anything related to using or creating attributes in .net source code.

Getting attributes of Enum's value

I would like to know if it is possible to get attributes of the enum values and not of the …

c# reflection enums .net-attributes
What does [STAThread] do?

I am learning C# 3.5 and I want to know what [STAThread] does in our programs?

c# .net-attributes
Find a private field with Reflection?

Given this class class Foo { // Want to find _bar with reflection [SomeAttribute] private string _bar; public string BigBar { get { return …

c# .net reflection .net-attributes
Most Useful Attributes

I know that attributes are extremely useful. There are some predefined ones such as [Browsable(false)] which allows you to …

c# .net .net-attributes
displayname attribute vs display attribute

What is difference between DisplayName attribute and Display attribute in ASP.NET MVC?

c# asp.net-mvc data-annotations displayattribute .net-attributes
Why does C# forbid generic attribute types?

This causes a compile-time exception: public sealed class ValidatesAttribute<T> : Attribute { } [Validates<string>] public static class …

c# generics .net-attributes
What are attributes in .NET?

What are attributes in .NET, what are they good for, and how do I create my own attributes?

c# .net glossary .net-attributes