Click here to Skip to main content
15,507,526 members
Home / Discussions / C#
   

C#

 
AnswerRe: Customizable keybinds C# Pin
OriginalGriff19-Jun-20 21:10
mveOriginalGriff19-Jun-20 21:10 
QuestionC# windows application: how to enable and disable scrollbars in datagridview programatically? Pin
Rajasekaran Bose18-Jun-20 0:53
Rajasekaran Bose18-Jun-20 0:53 
AnswerRe: C# windows application: how to enable and disable scrollbars in datagridview programatically? Pin
Richard MacCutchan18-Jun-20 1:41
mveRichard MacCutchan18-Jun-20 1:41 
QuestionAnyone working with the new VS2019 .Net NI-VISA driver? Pin
SunshineDesign16-Jun-20 16:58
SunshineDesign16-Jun-20 16:58 
AnswerRe: Anyone working with the new VS2019 .Net NI-VISA driver? Pin
Richard MacCutchan16-Jun-20 22:01
mveRichard MacCutchan16-Jun-20 22:01 
GeneralRe: Anyone working with the new VS2019 .Net NI-VISA driver? Pin
SunshineDesign17-Jun-20 8:00
SunshineDesign17-Jun-20 8:00 
AnswerRe: Anyone working with the new VS2019 .Net NI-VISA driver? Pin
Pawel Wzietek30-Jun-20 19:50
Pawel Wzietek30-Jun-20 19:50 
QuestionMultiple Classes, same name Pin
Wiep Corbier15-Jun-20 23:20
Wiep Corbier15-Jun-20 23:20 
For the next C# version I would like the ability to have multiple classes with the same name.
But, this is for POCO's

What do I mean?

I have an poco with the name CandidateFunction

public class CandidateFunction
{
    public int CandidateFunctionId { get; set; }
    public int CandidateId { get; set; }
    public int FunctionId { get; set; }
    public string Skills { get; set; }
    public DateTime Date { get; set; }
}

As you can see, the property with the name Skills is a string.
It can be a long string and it stores one or more Skills.

But customers want to see Skills as a list so I have another POCO
public class CandidateFunctionWithSkillsList
{
    public int CandidateFunctionId { get; set; }
    public int CandidateId { get; set; }
    public int FunctionId { get; set; }
    public List<Skill> Skills { get; set; }
    public DateTime Date { get; set; }
}


It has another name.

Now, I want both POCO's with the same name. I know there alternatives for what I want but I don't like them.

So, when I instantiate a new CandidateFunction, I want a popup asking me which one I want to use.

Will this ever happen and if not, why not?
AnswerRe: Multiple Classes, same name Pin
Richard Deeming15-Jun-20 23:31
mveRichard Deeming15-Jun-20 23:31 
GeneralRe: Multiple Classes, same name Pin
Wiep Corbier15-Jun-20 23:42
Wiep Corbier15-Jun-20 23:42 
GeneralRe: Multiple Classes, same name Pin
Richard Deeming15-Jun-20 23:47
mveRichard Deeming15-Jun-20 23:47 
GeneralRe: Multiple Classes, same name Pin
Wiep Corbier15-Jun-20 23:56
Wiep Corbier15-Jun-20 23:56 
GeneralRe: Multiple Classes, same name Pin
Richard Deeming16-Jun-20 0:47
mveRichard Deeming16-Jun-20 0:47 
GeneralRe: Multiple Classes, same name Pin
kalberts16-Jun-20 1:05
kalberts16-Jun-20 1:05 
GeneralRe: Multiple Classes, same name Pin
Richard Deeming16-Jun-20 1:31
mveRichard Deeming16-Jun-20 1:31 
GeneralRe: Multiple Classes, same name Pin
kalberts16-Jun-20 1:44
kalberts16-Jun-20 1:44 
GeneralRe: Multiple Classes, same name Pin
Wiep Corbier16-Jun-20 1:20
Wiep Corbier16-Jun-20 1:20 
GeneralRe: Multiple Classes, same name Pin
Richard Deeming16-Jun-20 1:28
mveRichard Deeming16-Jun-20 1:28 
AnswerRe: Multiple Classes, same name Pin
ZurdoDev16-Jun-20 3:16
professionalZurdoDev16-Jun-20 3:16 
GeneralRe: Multiple Classes, same name Pin
ZurdoDev16-Jun-20 3:18
professionalZurdoDev16-Jun-20 3:18 
GeneralRe: Multiple Classes, same name Pin
Dave Kreskowiak16-Jun-20 4:16
mveDave Kreskowiak16-Jun-20 4:16 
GeneralRe: Multiple Classes, same name Pin
Nelek22-Jun-20 6:53
protectorNelek22-Jun-20 6:53 
AnswerRe: Multiple Classes, same name Pin
OriginalGriff15-Jun-20 23:32
mveOriginalGriff15-Jun-20 23:32 
AnswerRe: Multiple Classes, same name Pin
Richard MacCutchan16-Jun-20 1:27
mveRichard MacCutchan16-Jun-20 1:27 
GeneralRe: Multiple Classes, same name Pin
Wiep Corbier16-Jun-20 1:36
Wiep Corbier16-Jun-20 1:36 

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.