Click here to Skip to main content
15,078,444 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# and Excel don't work in a computer without Visual Studio Pin
Dave Kreskowiak25-Aug-21 12:22
mveDave Kreskowiak25-Aug-21 12:22 
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 
Just had one of those moments where I thought I was going mad. I had put a method implementation in an interface (not quite sure how I got there) and not only did the compiler not complain, it actually worked. After several minutes questioning my sanity, I recalled something new in the language about this, and it turns out its C#8 'default implementations' or some such.

Thus the central tenet of an interface 'can't contain an implementation' is gone, well sort of. I think its probably the case that the source can contain an implementation, but its just lifted into the implementer by the compiler, which I guess creates a type of static polymorphism. Haven't actually read about it too closely so that might be wrong. There certainly seems to be parallels to a virtual function. I really feel I need to sit down and think out my understanding and implications of all this now.

It warrants the question whether they are messing with the language too much? As it turns out this feature is of use to me if I don't think about it too much, allowing me to provide a simple helper property which just combines other properties, but it seems an interface is just that bit closer to an abstract class now.

I have to say these updates to the language generally aren't met with pleasure by me. They're just more things I feel I need to keep on top on rather than things that actually make my life easier. Old dog maybe, I still haven't got over extension methods yet!
Regards,
Rob Philpott.

GeneralRe: Interfaces with code in them Pin
Richard Deeming20-Aug-21 0:40
mveRichard Deeming20-Aug-21 0:40 
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 

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.