Click here to Skip to main content
15,911,531 members
Home / Discussions / C#
   

C#

 
QuestionCustomizable keybinds C# Pin
Member 1486815919-Jun-20 14:28
Member 1486815919-Jun-20 14:28 
AnswerRe: Customizable keybinds C# Pin
OriginalGriff19-Jun-20 20:10
mveOriginalGriff19-Jun-20 20:10 
QuestionC# windows application: how to enable and disable scrollbars in datagridview programatically? Pin
Rajasekaran Bose17-Jun-20 23:53
Rajasekaran Bose17-Jun-20 23:53 
AnswerRe: C# windows application: how to enable and disable scrollbars in datagridview programatically? Pin
Richard MacCutchan18-Jun-20 0:41
mveRichard MacCutchan18-Jun-20 0:41 
QuestionAnyone working with the new VS2019 .Net NI-VISA driver? Pin
SunshineDesign16-Jun-20 15:58
SunshineDesign16-Jun-20 15:58 
AnswerRe: Anyone working with the new VS2019 .Net NI-VISA driver? Pin
Richard MacCutchan16-Jun-20 21:01
mveRichard MacCutchan16-Jun-20 21:01 
GeneralRe: Anyone working with the new VS2019 .Net NI-VISA driver? Pin
SunshineDesign17-Jun-20 7:00
SunshineDesign17-Jun-20 7:00 
AnswerRe: Anyone working with the new VS2019 .Net NI-VISA driver? Pin
Pawel Wzietek30-Jun-20 18:50
Pawel Wzietek30-Jun-20 18:50 
QuestionMultiple Classes, same name Pin
Wiep Corbier15-Jun-20 22:20
Wiep Corbier15-Jun-20 22:20 
AnswerRe: Multiple Classes, same name Pin
Richard Deeming15-Jun-20 22:31
mveRichard Deeming15-Jun-20 22:31 
GeneralRe: Multiple Classes, same name Pin
Wiep Corbier15-Jun-20 22:42
Wiep Corbier15-Jun-20 22:42 
GeneralRe: Multiple Classes, same name Pin
Richard Deeming15-Jun-20 22:47
mveRichard Deeming15-Jun-20 22:47 
GeneralRe: Multiple Classes, same name Pin
Wiep Corbier15-Jun-20 22:56
Wiep Corbier15-Jun-20 22:56 
GeneralRe: Multiple Classes, same name Pin
Richard Deeming15-Jun-20 23:47
mveRichard Deeming15-Jun-20 23:47 
GeneralRe: Multiple Classes, same name Pin
kalberts16-Jun-20 0:05
kalberts16-Jun-20 0:05 
GeneralRe: Multiple Classes, same name Pin
Richard Deeming16-Jun-20 0:31
mveRichard Deeming16-Jun-20 0:31 
GeneralRe: Multiple Classes, same name Pin
kalberts16-Jun-20 0:44
kalberts16-Jun-20 0:44 
GeneralRe: Multiple Classes, same name Pin
Wiep Corbier16-Jun-20 0:20
Wiep Corbier16-Jun-20 0:20 
GeneralRe: Multiple Classes, same name Pin
Richard Deeming16-Jun-20 0:28
mveRichard Deeming16-Jun-20 0:28 
AnswerRe: Multiple Classes, same name Pin
ZurdoDev16-Jun-20 2:16
professionalZurdoDev16-Jun-20 2:16 
GeneralRe: Multiple Classes, same name Pin
ZurdoDev16-Jun-20 2:18
professionalZurdoDev16-Jun-20 2:18 
GeneralRe: Multiple Classes, same name Pin
Dave Kreskowiak16-Jun-20 3:16
mveDave Kreskowiak16-Jun-20 3:16 
Wiep Corbier wrote:
A person walkes in and asks for Richard. People will ask, which Richard? (popup intelli)

OK, how is the compiler going to "popup a dialog" to ask which version of the class you want when you try to "new it up"?
C#
CandidateFunction newCandidate = new CandidateFunction()

WHICH "CandidateFunction" does the code "new up"? How is it going to know? There's no way for the compiler or the code to generate a prompt to ask. Even if it was possible, the UI type of the app comes into play. Is this a Console app? Windows Forms? WPF? ASP.NET? Each handles prompting the user is different ways, so how is the compiler to know which to use?

Oh, and how about apps with no user interface at all, like Window Services and WebAPI? How is that prompt supposed to show up?

This would have to be prompted for at compile-time. There's absolutely no way to do this at run-time.

On top of that, how is the compiler to know which type of object it is when you go to use that object elsewhere?

Did you really think about this before posting? If you want this, then it's your skill set that needs to be improved, not the compiler.

GeneralRe: Multiple Classes, same name Pin
Nelek22-Jun-20 5:53
protectorNelek22-Jun-20 5:53 
AnswerRe: Multiple Classes, same name Pin
OriginalGriff15-Jun-20 22:32
mveOriginalGriff15-Jun-20 22:32 
AnswerRe: Multiple Classes, same name Pin
Richard MacCutchan16-Jun-20 0:27
mveRichard MacCutchan16-Jun-20 0:27 

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.