Click here to Skip to main content
15,900,258 members
Home / Discussions / C#
   

C#

 
GeneralRe: WinForms, Window with FormBorderStyle.None and Taskbar moved doesn't adjust to new size Pin
BillWoodruff29-May-19 3:17
professionalBillWoodruff29-May-19 3:17 
AnswerRe: WinForms, Window with FormBorderStyle.None and Taskbar moved doesn't adjust to new size Pin
Gerry Schmitz29-May-19 3:47
mveGerry Schmitz29-May-19 3:47 
GeneralRe: WinForms, Window with FormBorderStyle.None and Taskbar moved doesn't adjust to new size Pin
Ken Guru29-May-19 4:28
Ken Guru29-May-19 4:28 
AnswerRe: WinForms, Window with FormBorderStyle.None and Taskbar moved doesn't adjust to new size Pin
BillWoodruff29-May-19 7:12
professionalBillWoodruff29-May-19 7:12 
QuestionC# using class library how to get download pdf link in mail Pin
Member 1447263827-May-19 20:28
Member 1447263827-May-19 20:28 
AnswerRe: C# using class library how to get download pdf link in mail PinPopular
OriginalGriff27-May-19 20:30
mveOriginalGriff27-May-19 20:30 
AnswerRe: C# using class library how to get download pdf link in mail Pin
Dave Kreskowiak28-May-19 4:35
mveDave Kreskowiak28-May-19 4:35 
QuestionC# 8's 'switch syntax gives me the willies Pin
BillWoodruff27-May-19 0:57
professionalBillWoodruff27-May-19 0:57 
AnswerRe: C# 8's 'switch syntax gives me the willies Pin
OriginalGriff27-May-19 1:56
mveOriginalGriff27-May-19 1:56 
GeneralRe: C# 8's 'switch syntax gives me the willies Pin
BillWoodruff27-May-19 2:25
professionalBillWoodruff27-May-19 2:25 
Well, I experience it as weird, as potentially high risk in terms of code maintenance, but I wouldn't say "ugly." Wonder what Grady Booch ... "The function of good software is to make the complex appear to be simple." ... would think.

I find even weirder the use of an underscore character as a "finalizer" in 'switch, as in this example:
string Display(object o)
{
    return o switch
    {   
        Point p => $"({p.X}, {p.Y})",
        _ => "unknown"
    };
}
source: [^]
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot

AnswerRe: C# 8's 'switch syntax gives me the willies Pin
#realJSOP27-May-19 7:28
professional#realJSOP27-May-19 7:28 
GeneralRe: C# 8's 'switch syntax gives me the willies Pin
OriginalGriff27-May-19 8:05
mveOriginalGriff27-May-19 8:05 
GeneralRe: C# 8's 'switch syntax gives me the willies Pin
#realJSOP27-May-19 9:18
professional#realJSOP27-May-19 9:18 
GeneralRe: C# 8's 'switch syntax gives me the willies Pin
Eddy Vluggen27-May-19 10:04
professionalEddy Vluggen27-May-19 10:04 
GeneralRe: C# 8's 'switch syntax gives me the willies Pin
OriginalGriff27-May-19 19:57
mveOriginalGriff27-May-19 19:57 
GeneralRe: C# 8's 'switch syntax gives me the willies Pin
Eddy Vluggen28-May-19 11:15
professionalEddy Vluggen28-May-19 11:15 
QuestionHow to get the Count of webseit visitors using Razor ASP.Core ? Pin
Abdalla Ben Omran26-May-19 23:43
Abdalla Ben Omran26-May-19 23:43 
AnswerRe: How to get the Count of webseit visitors using Razor ASP.Core ? Pin
OriginalGriff27-May-19 0:43
mveOriginalGriff27-May-19 0:43 
GeneralRe: How to get the Count of webseit visitors using Razor ASP.Core ? Pin
Abdalla Ben Omran27-May-19 0:59
Abdalla Ben Omran27-May-19 0:59 
GeneralRe: How to get the Count of webseit visitors using Razor ASP.Core ? Pin
OriginalGriff27-May-19 1:05
mveOriginalGriff27-May-19 1:05 
GeneralRe: How to get the Count of webseit visitors using Razor ASP.Core ? Pin
Abdalla Ben Omran27-May-19 1:56
Abdalla Ben Omran27-May-19 1:56 
GeneralRe: How to get the Count of webseit visitors using Razor ASP.Core ? Pin
Gerry Schmitz27-May-19 7:58
mveGerry Schmitz27-May-19 7:58 
AnswerRe: How to get the Count of webseit visitors using Razor ASP.Core ? Pin
#realJSOP27-May-19 7:34
professional#realJSOP27-May-19 7:34 
QuestionHow to replace every different char with another given char Pin
Member 1379031625-May-19 5:49
Member 1379031625-May-19 5:49 
AnswerRe: How to replace every different char with another given char Pin
Richard MacCutchan25-May-19 6:04
mveRichard MacCutchan25-May-19 6:04 

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.