StackOverflow Questions for Tag: .net-attributes

Alex K
Alex K

Reputation: 11215

Getting attributes of Enum's value

Score: 596

Views: 442599

Answers: 28

Read More
Nulle
Nulle

Reputation: 1329

F# What is this [<something>]?

Score: 1

Views: 151

Answers: 1

Read More
purejoymind
purejoymind

Reputation: 53

Is there an Equivalent to HubName attribute in .NET 8 SignalR?

Score: 2

Views: 404

Answers: 1

Read More
Bryan Watts
Bryan Watts

Reputation: 45465

Why does C# forbid generic attribute types?

Score: 556

Views: 88671

Answers: 8

Read More
Alexandra Valkova
Alexandra Valkova

Reputation: 97

PasswordPropertyText vs DataType(DataType.Password) attribute

Score: 3

Views: 665

Answers: 0

Read More
David Basarab
David Basarab

Reputation: 73351

Find a private field with Reflection?

Score: 287

Views: 238744

Answers: 11

Read More
Jeff
Jeff

Reputation: 21

Why does the JSON2CSharp online converter decorate each property with a [JsonProperty("...")] attribute?

Score: 1

Views: 138

Answers: 1

Read More
DimChtz
DimChtz

Reputation: 4333

Suppress implicit required attribute

Score: 3

Views: 1127

Answers: 0

Read More
codinges
codinges

Reputation: 61

How can I both dependency injection and send value inside the attribute in .net core?

Score: -1

Views: 409

Answers: 1

Read More
Green Grasso Holm
Green Grasso Holm

Reputation: 704

Including read-only columns in an Entity Framework model

Score: 1

Views: 563

Answers: 1

Read More
Alex B
Alex B

Reputation: 24946

Can I fail to deserialize with XmlSerializer in C# if an element is not found?

Score: 16

Views: 14852

Answers: 3

Read More
odiseh
odiseh

Reputation: 26547

What does [STAThread] do?

Score: 371

Views: 294296

Answers: 3

Read More
ilyas varol
ilyas varol

Reputation: 968

What does the [ApiController] attribute do?

Score: 32

Views: 25583

Answers: 1

Read More
gnagesh
gnagesh

Reputation: 93

What is the "module" keyword in C# .NET?

Score: 7

Views: 1718

Answers: 1

Read More
wusher
wusher

Reputation: 12451

Most Useful Attributes

Score: 805

Views: 172843

Answers: 32

Read More
Martin Ba
Martin Ba

Reputation: 38941

How can we make sure that all NUnit [Test] methods are public?

Score: 4

Views: 320

Answers: 2

Read More
Jeppe Stig Nielsen
Jeppe Stig Nielsen

Reputation: 62002

Curious ambiguity in attribute specification (two using directives)

Score: 12

Views: 646

Answers: 3

Read More
Rob Cooper
Rob Cooper

Reputation: 28867

Enforce Attribute Decoration of Classes/Methods

Score: 18

Views: 5026

Answers: 5

Read More
heyNow
heyNow

Reputation: 886

How to use a custom annotations validator POCO without any framework (no asp.net, no mvc, no ORM)

Score: 0

Views: 543

Answers: 1

Read More
Corey
Corey

Reputation: 14377

What are attributes in .NET?

Score: 211

Views: 69983

Answers: 11

Read More
PreviousPage 1Next