Click here to Skip to main content
15,063,287 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# and Excel don't work in a computer without Visual Studio Pin
Ismael Oliveira 202126-Aug-21 4:04
MemberIsmael Oliveira 202126-Aug-21 4:04 
AnswerRe: C# and Excel don't work in a computer without Visual Studio Pin
Richard Andrew x6426-Aug-21 9:43
professionalRichard Andrew x6426-Aug-21 9:43 
QuestionSolve Web Service Error Pin
Luis M. Rojas24-Aug-21 2:43
MemberLuis M. Rojas24-Aug-21 2:43 
AnswerRe: Solve Web Service Error Pin
Pete O'Hanlon24-Aug-21 10:18
mvePete O'Hanlon24-Aug-21 10:18 
QuestionHow to make an inactive window work and respond to buttons (C# .NET windows forms) Pin
Marcin Rajczakowski23-Aug-21 10:31
MemberMarcin Rajczakowski23-Aug-21 10:31 
AnswerRe: How to make an inactive window work and respond to buttons (C# .NET windows forms) Pin
BillWoodruff23-Aug-21 11:20
mveBillWoodruff23-Aug-21 11:20 
GeneralInterfaces with code in them Pin
Rob Philpott20-Aug-21 0:22
MemberRob Philpott20-Aug-21 0:22 
GeneralRe: Interfaces with code in them Pin
Richard Deeming20-Aug-21 0:40
mveRichard Deeming20-Aug-21 0:40 
Yes, default interface methods look like a complete mess to me:
Interfaces can now include static members, including fields and methods. Different access modifiers are also enabled. The additional fields are private, the new method is public. Any of the modifiers are allowed on interface members.
Thankfully, it's restricted to .NET Core 3.0 or later. With no SSRS support in .NET Core / .NET 5, we're sticking with .NET Framework 4.8, so our interfaces shall remain untainted by this abomination.

If you're interested, Matt Warren digs into the low-level "behind the scenes" details here:
Under the hood of "Default Interface Methods" · Performance is a Feature![^]

Oh, and things are set to get even worse in C# 10:
[Proposal]: Static abstract members in interfaces · Issue #4436 · dotnet/csharplang · GitHub[^]



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

GeneralRe: Interfaces with code in them Pin
Rob Philpott20-Aug-21 0:55
MemberRob Philpott20-Aug-21 0:55 
GeneralRe: Interfaces with code in them Pin
pkfox29-Aug-21 22:46
professionalpkfox29-Aug-21 22:46 
GeneralRe: Interfaces with code in them Pin
Gerry Schmitz20-Aug-21 6:48
mveGerry Schmitz20-Aug-21 6:48 
Questionthere I thought the days of CreateParams were over ... observation (tip ?) Pin
BillWoodruff17-Aug-21 12:34
mveBillWoodruff17-Aug-21 12:34 
AnswerRe: there I thought the days of CreateParams were over ... observation (tip ?) Pin
OriginalGriff19-Aug-21 9:02
mveOriginalGriff19-Aug-21 9:02 
GeneralRe: there I thought the days of CreateParams were over ... observation (tip ?) Pin
Richard Andrew x6419-Aug-21 9:26
professionalRichard Andrew x6419-Aug-21 9:26 
GeneralRe: there I thought the days of CreateParams were over ... observation (tip ?) Pin
BillWoodruff19-Aug-21 10:46
mveBillWoodruff19-Aug-21 10:46 
QuestionSystem.IndexOutOfRangeException Pin
ProgrammerT216-Aug-21 23:36
MemberProgrammerT216-Aug-21 23:36 
AnswerRe: System.IndexOutOfRangeException Pin
Ralf Meier16-Aug-21 23:43
professionalRalf Meier16-Aug-21 23:43 
AnswerRe: System.IndexOutOfRangeException Pin
OriginalGriff17-Aug-21 0:06
mveOriginalGriff17-Aug-21 0:06 
QuestionHow Linq determine the index of a list item? Pin
Alex Dunlop16-Aug-21 22:57
MemberAlex Dunlop16-Aug-21 22:57 
AnswerRe: How Linq determine the index of a list item? Pin
Richard Deeming16-Aug-21 23:09
mveRichard Deeming16-Aug-21 23:09 
QuestionC# interacting with Excel Pin
Ismael Oliveira 202116-Aug-21 13:15
MemberIsmael Oliveira 202116-Aug-21 13:15 
AnswerRe: C# interacting with Excel Pin
Richard Deeming16-Aug-21 21:36
mveRichard Deeming16-Aug-21 21:36 
GeneralRe: C# interacting with Excel Pin
Ismael Oliveira 202124-Aug-21 12:46
MemberIsmael Oliveira 202124-Aug-21 12:46 
AnswerRe: C# interacting with Excel Pin
Richard MacCutchan16-Aug-21 21:42
mveRichard MacCutchan16-Aug-21 21:42 
AnswerRe: C# interacting with Excel Pin
SpiveyC#7-Sep-21 1:44
MemberSpiveyC#7-Sep-21 1:44 

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.