Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

What is the proper way to suggest features to be added to the C# language?

For example, I would like to have an operator similar to ?? but for selecting the min or max values.

I'd like a <? b to expand to a < b ? a : b likewise for >?

share|improve this question
1  
Contact the team responsible for the language at Microsoft. –  Bernard Jan 27 '12 at 20:52
9  
Is there something wrong with using the Min or Max functions? –  Zach L Jan 27 '12 at 20:53
2  
Good luck getting this feature added... –  ChaosPandion Jan 27 '12 at 20:54
1  
While I didn't intend this question to be about the relevance of this specific feature request. I like it because it could support any class that overloads < instead of the limited selection of overloads for the Math.Min and Math.Max functions. Also it is cleaner for 3 or more. Math.Min(a, Math.Min(b, c)) vs a <? b <? c. –  Josh Jan 27 '12 at 21:05
4  
By the way F# can easily supports this feature: let inline (<?) (a:^t) (b:^t) = if a < b then a else b –  ChaosPandion Jan 27 '12 at 21:19
show 2 more comments

1 Answer

up vote 12 down vote accepted

Microsoft Connect is the central Hub regarding all suggestions about Microsoft products.

Concerning C#, you will have to go through the "Visual Studio and .Net Framework" product and you will end up on the Visual Studio User Voice website where ideas can be submitted.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.