Click here to Skip to main content
14,667,416 members
Home » Discussions » C#
   

C#

 
GeneralRe: Multiple Classes, same name Pin
Member 798912216-Jun-20 0:44
MemberMember 798912216-Jun-20 0:44 
GeneralRe: Multiple Classes, same name Pin
Wiep Corbier16-Jun-20 0:20
MemberWiep 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
mveZurdoDev16-Jun-20 2:16 
GeneralRe: Multiple Classes, same name Pin
ZurdoDev16-Jun-20 2:18
mveZurdoDev16-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 
AnswerRe: Multiple Classes, same name Pin
OriginalGriff15-Jun-20 22:32
mveOriginalGriff15-Jun-20 22:32 
No.
Because - frankly - it's a dumb idea. Selecting class types at run time based on what the user decides is a recipe for convoluted, messy code that doesn;t work well in practice because users are not developers. That means that have no idea what a class is, or why they want to select one.

If you want users to decide what to create, ask them "Do you want a Candidate, or a Candidate with skills?" and explain what the difference is in their terms and what effect the decision will have. You cannot "leave that to the system" and get them to choose based on two similar names.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!

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
MemberWiep 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
MemberWiep 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
MemberWiep 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
MemberWiep 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
MemberWiep 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
Member 798912216-Jun-20 3:13
MemberMember 798912216-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
MemberWiep Corbier16-Jun-20 3:26 
GeneralRe: Multiple Classes, same name Pin
Dave Kreskowiak16-Jun-20 3:42
mveDave Kreskowiak16-Jun-20 3: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.