Click here to Skip to main content
15,887,821 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: I hate recent C# versions! Pin
harold aptroot6-Sep-22 1:13
harold aptroot6-Sep-22 1:13 
GeneralRe: I hate recent C# versions! PinPopular
den2k886-Sep-22 4:04
professionalden2k886-Sep-22 4:04 
GeneralRe: I hate recent C# versions! Pin
DRHuff6-Sep-22 5:13
DRHuff6-Sep-22 5:13 
GeneralRe: I hate recent C# versions! PinPopular
Richard Deeming6-Sep-22 1:18
mveRichard Deeming6-Sep-22 1:18 
GeneralRe: I hate recent C# versions! Pin
Kate-X2576-Sep-22 22:08
Kate-X2576-Sep-22 22:08 
GeneralRe: I hate recent C# versions! Pin
Mateusz Jakub6-Sep-22 23:47
Mateusz Jakub6-Sep-22 23:47 
GeneralRe: I hate recent C# versions! Pin
Chris Maunder7-Sep-22 3:14
cofounderChris Maunder7-Sep-22 3:14 
GeneralRe: I hate recent C# versions! Pin
Richard Deeming7-Sep-22 3:36
mveRichard Deeming7-Sep-22 3:36 
Chris Maunder wrote:
C#
public readonly double Distance => Math.Sqrt(X * X + Y * Y);
That would give you a CS0106 compiler error. Smile | :)
You would need either:
C#
public readonly double Distance = Math.Sqrt(X * X + Y * Y);
or:
C#
public double Distance => Math.Sqrt(X * X + Y * Y);
Wrong: See William's post below.

Chris Maunder wrote:
C#
c is (>= 'a' and <= 'z') or (>= 'A' and <= 'Z')
Well, of course, anyone serious about performance would write that as:
C#
(uint)((c | 0x20) - 'a') <= 'z' - 'a'
Laugh | :laugh:
Source: Performance Improvements in .NET 7 - .NET Blog[^])



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


modified 9-Sep-22 3:38am.

GeneralRe: I hate recent C# versions! Pin
Chris Maunder7-Sep-22 4:20
cofounderChris Maunder7-Sep-22 4:20 
GeneralRe: I hate recent C# versions! Pin
William Rummler7-Sep-22 5:40
William Rummler7-Sep-22 5:40 
GeneralRe: I hate recent C# versions! Pin
Philippe Verdy8-Sep-22 12:01
Philippe Verdy8-Sep-22 12:01 
GeneralRe: I hate recent C# versions! PinPopular
Kornfeld Eliyahu Peter6-Sep-22 1:26
professionalKornfeld Eliyahu Peter6-Sep-22 1:26 
GeneralRe: I hate recent C# versions! Pin
Gerry Schmitz6-Sep-22 5:47
mveGerry Schmitz6-Sep-22 5:47 
GeneralRe: I hate recent C# versions! PinPopular
BryanFazekas7-Sep-22 1:10
BryanFazekas7-Sep-22 1:10 
GeneralRe: I hate recent C# versions! PinPopular
OriginalGriff6-Sep-22 1:39
mveOriginalGriff6-Sep-22 1:39 
GeneralRe: I hate recent C# versions! Pin
PIEBALDconsult6-Sep-22 4:54
mvePIEBALDconsult6-Sep-22 4:54 
GeneralRe: I hate recent C# versions! Pin
harold aptroot6-Sep-22 5:04
harold aptroot6-Sep-22 5:04 
GeneralRe: I hate recent C# versions! Pin
PIEBALDconsult6-Sep-22 5:07
mvePIEBALDconsult6-Sep-22 5:07 
GeneralRe: I hate recent C# versions! Pin
harold aptroot6-Sep-22 5:10
harold aptroot6-Sep-22 5:10 
GeneralRe: I hate recent C# versions! Pin
PIEBALDconsult6-Sep-22 5:26
mvePIEBALDconsult6-Sep-22 5:26 
GeneralRe: I hate recent C# versions! Pin
harold aptroot6-Sep-22 5:38
harold aptroot6-Sep-22 5:38 
GeneralRe: I hate recent C# versions! Pin
PIEBALDconsult6-Sep-22 5:51
mvePIEBALDconsult6-Sep-22 5:51 
GeneralRe: I hate recent C# versions! Pin
NiL^6-Sep-22 21:43
NiL^6-Sep-22 21:43 
GeneralRe: I hate recent C# versions! Pin
PIEBALDconsult7-Sep-22 2:31
mvePIEBALDconsult7-Sep-22 2:31 
GeneralRe: I hate recent C# versions! Pin
NiL^7-Sep-22 4:30
NiL^7-Sep-22 4:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.