tagged [specifications]
Why does C# not allow generic properties?
Why does C# not allow generic properties? I was wondering why I can not have generic property in non-generic class the way I can have generic methods. I.e.: I read @Jon Skeet's [answer](https://stacko...
- Modified
- 9 Apr at 05:39
Has the C# spec (team? committee?) ever considered this object creation syntax?
Has the C# spec (team? committee?) ever considered this object creation syntax? In the interest of keeping everything I care about as close to the left margin as possible, I keep wishing I could write...
- Modified
- 25 Apr at 16:50
Why does C# define two different uses for `using`?
Why does C# define two different uses for `using`? More a question out of curiosity than anything, but why does C# define two different "purposes" for the keyword `using`? On one hand, it's a directiv...
- Modified
- 10 Mar at 14:22
If an identity conversion exists from S to T, must it be that S and T are same type?
If an identity conversion exists from S to T, must it be that S and T are same type? In 6.1.6. of the C# language specification, there is: > The implicit reference conversions are:(...) From any refe...
- Modified
- 5 Jan at 15:45
Java's L number (long) specification
Java's L number (long) specification It appears that when you type in a number in Java, the compiler automatically reads it as an integer, which is why when you type in (long) `6000000000` (not in int...
- Modified
- 4 Nov at 16:17
Any reason to write the "private" keyword in C#?
Any reason to write the "private" keyword in C#? As far as I know, `private` is the default in C# (meaning that if I don't write `public`, `protected`, `internal`, etc. it will be `private` by default...
- Modified
- 29 Dec at 17:56
What's the use/meaning of the @ character in variable names in C#?
What's the use/meaning of the @ character in variable names in C#? I discovered that you can start your variable name with a '@' character in C#. In my C# project I was using a web service (I added a ...
- Modified
- 22 Jan at 08:37
Does C# guarantee evaluation order of branched nested expressions?
Does C# guarantee evaluation order of branched nested expressions? C# handles both nested and chained expressions, obviously. If the nesting and/or chaining is linear then it's evident what order the ...
- Modified
- 22 Apr at 09:59
What is the purpose of external static constructors in C#?
What is the purpose of external static constructors in C#? Accordingly to the section "10.12 Static constructors" of "C# Language Specification. Version 5.0" static constructor can be marked with "ext...
- Modified
- 23 May at 12:2
How to encode the filename parameter of Content-Disposition header in HTTP?
How to encode the filename parameter of Content-Disposition header in HTTP? Web applications that want to force a resource to be rather than directly in a Web browser issue a `Content-Disposition` hea...
- Modified
- 2 Nov at 14:20