Click here to Skip to main content
15,891,902 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Multiple Classes, same name Pin
Nelek22-Jun-20 5:53
protectorNelek22-Jun-20 5:53 
Wiep Corbier wrote:
But imagine this. You work in a office room with a colleguea also called Richard.
A person walkes in and asks for Richard. People will ask, which Richard? (popup intelli)

Got it?
I think he got it at the very beginning.
But at which point do you want the intelli pop up to come?
At compiling time... ok, do you know with of the functions is needed in each 62 places where the name is used?
Maybe you do now... but then you go to another project and then you have to make some additions 3 or 4 years later... or you leave and another guy gets in your project... or the project is so big that there are several people working on the same area at the same time... good luck when compiling (and don't forget to start one hour before the test because you will need some time to click all popups).

At execution time... how will the user know, which class is the one needed? Ok, maybe your user knows it, but how will my user know it? Or the new customer's employee.

What are the consequences of a bad selection? Good if I see I have selected the wrong option soon enough, but what if they don't realize it? Are the differences between the classes compatible? Will you need plausibility checks? How can you choose which plausibility check is needed each time?



it is already difficult enough to get the exact result you (and they) want as it is, if you add ambiguity on top... I don't even want to imagine it.
M.D.V. Wink | ;)

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.


modified 22-Jun-20 12:30pm.

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 
GeneralRe: Multiple Classes, same name Pin
Wiep Corbier16-Jun-20 0:36
Wiep Corbier16-Jun-20 0:36 
GeneralRe: Multiple Classes, same name Pin
Richard MacCutchan16-Jun-20 0:52
mveRichard MacCutchan16-Jun-20 0:52 
GeneralRe: Multiple Classes, same name Pin
Wiep Corbier16-Jun-20 0:55
Wiep Corbier16-Jun-20 0:55 
GeneralRe: Multiple Classes, same name Pin
Richard MacCutchan16-Jun-20 1:05
mveRichard MacCutchan16-Jun-20 1:05 
GeneralRe: Multiple Classes, same name Pin
Wiep Corbier16-Jun-20 1:17
Wiep Corbier16-Jun-20 1:17 
GeneralRe: Multiple Classes, same name Pin
Richard MacCutchan16-Jun-20 1:37
mveRichard MacCutchan16-Jun-20 1:37 
GeneralRe: Multiple Classes, same name Pin
Wiep Corbier16-Jun-20 1:50
Wiep Corbier16-Jun-20 1:50 
GeneralRe: Multiple Classes, same name Pin
OriginalGriff16-Jun-20 1:58
mveOriginalGriff16-Jun-20 1:58 
GeneralRe: Multiple Classes, same name Pin
Wiep Corbier16-Jun-20 2:10
Wiep Corbier16-Jun-20 2:10 
GeneralRe: Multiple Classes, same name Pin
Richard MacCutchan16-Jun-20 2:18
mveRichard MacCutchan16-Jun-20 2:18 
GeneralRe: Multiple Classes, same name Pin
kalberts16-Jun-20 3:13
kalberts16-Jun-20 3:13 
GeneralRe: Multiple Classes, same name Pin
Richard MacCutchan16-Jun-20 3:50
mveRichard MacCutchan16-Jun-20 3:50 
GeneralRe: Multiple Classes, same name Pin
Nelek22-Jun-20 5:58
protectorNelek22-Jun-20 5:58 
GeneralRe: Multiple Classes, same name Pin
Dave Kreskowiak16-Jun-20 3:22
mveDave Kreskowiak16-Jun-20 3:22 
GeneralRe: Multiple Classes, same name Pin
Wiep Corbier16-Jun-20 3:26
Wiep Corbier16-Jun-20 3:26 

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.