Click here to Skip to main content
14,298,693 members
   

C#

 
GeneralRe: WinForms, Window with FormBorderStyle.None and Taskbar moved doesn't adjust to new size Pin
Ken Guru29-May-19 4:28
memberKen 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
mveBillWoodruff29-May-19 7:12 
QuestionC# using class library how to get download pdf link in mail Pin
Member 1447263827-May-19 20:28
memberMember 1447263827-May-19 20:28 
AnswerRe: C# using class library how to get download pdf link in mail Pin
OriginalGriff27-May-19 20:30
protectorOriginalGriff27-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
mveBillWoodruff27-May-19 0:57 
AnswerRe: C# 8's 'switch syntax gives me the willies Pin
OriginalGriff27-May-19 1:56
protectorOriginalGriff27-May-19 1:56 
GeneralRe: C# 8's 'switch syntax gives me the willies Pin
BillWoodruff27-May-19 2:25
mveBillWoodruff27-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
mve#realJSOP27-May-19 7:28 
GeneralRe: C# 8's 'switch syntax gives me the willies Pin
OriginalGriff27-May-19 8:05
protectorOriginalGriff27-May-19 8:05 
GeneralRe: C# 8's 'switch syntax gives me the willies Pin
#realJSOP27-May-19 9:18
mve#realJSOP27-May-19 9:18 
GeneralRe: C# 8's 'switch syntax gives me the willies Pin
Eddy Vluggen27-May-19 10:04
mveEddy Vluggen27-May-19 10:04 
GeneralRe: C# 8's 'switch syntax gives me the willies Pin
OriginalGriff27-May-19 19:57
protectorOriginalGriff27-May-19 19:57 
GeneralRe: C# 8's 'switch syntax gives me the willies Pin
Eddy Vluggen28-May-19 11:15
mveEddy 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
memberAbdalla 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
protectorOriginalGriff27-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
memberAbdalla 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
protectorOriginalGriff27-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
memberAbdalla 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
mve#realJSOP27-May-19 7:34 
QuestionHow to replace every different char with another given char Pin
Member 1379031625-May-19 5:49
memberMember 1379031625-May-19 5:49 
AnswerRe: How to replace every different char with another given char Pin
Richard MacCutchan25-May-19 6:04
protectorRichard MacCutchan25-May-19 6:04 
AnswerRe: How to replace every different char with another given char Pin
OriginalGriff25-May-19 6:34
protectorOriginalGriff25-May-19 6:34 
JokeRe: How to replace every different char with another given char Pin
Eddy Vluggen25-May-19 10:05
mveEddy Vluggen25-May-19 10:05 

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.