Click here to Skip to main content
14,666,245 members
Home » Discussions » C#
   

C#

 
GeneralRe: Multiple Classes, same name Pin
Wiep Corbier16-Jun-20 4:32
MemberWiep Corbier16-Jun-20 4:32 
GeneralRe: Multiple Classes, same name Pin
Member 798912216-Jun-20 5:52
MemberMember 798912216-Jun-20 5:52 
GeneralRe: Multiple Classes, same name Pin
Wiep Corbier16-Jun-20 6:04
MemberWiep Corbier16-Jun-20 6:04 
GeneralRe: Multiple Classes, same name Pin
OriginalGriff16-Jun-20 4:28
mveOriginalGriff16-Jun-20 4:28 
GeneralRe: Multiple Classes, same name Pin
Pete O'Hanlon16-Jun-20 3:32
subeditorPete O'Hanlon16-Jun-20 3:32 
GeneralRe: Multiple Classes, same name Pin
Member 798912216-Jun-20 4:19
MemberMember 798912216-Jun-20 4:19 
GeneralRe: Multiple Classes, same name Pin
Wiep Corbier16-Jun-20 4:46
MemberWiep Corbier16-Jun-20 4:46 
GeneralRe: Multiple Classes, same name Pin
Member 798912216-Jun-20 5:13
MemberMember 798912216-Jun-20 5:13 
Wiep Corbier wrote:
ps: I don't want a class with two representation of the skill data. I just do not want that.
But I suggest a single reperesentation! Two representations would be really bad design. Two different presentations is a completely different thing.

It is like when your code handles a binary integer, you don't present it like a binary integer but format it into a character string. You may format it as hex, octal, decimal, with or without leading zeroes, trailing currency sign or whatever. For binary reals you print out the number of decimal positions according to need. The internal integer or real binary value is unique and unaffected by the presentation format.

Similar with you skills list. Whether it is stored as a single string with | separators, a list, a dictionary or as a database table doesn't matter: From that unique representation you may format it as a string, as a list or in any other format. For console output, you use different Format or ToString format strings, for binary formats, you use different accessors (that may also use Format/ToString when appropriate).

An accessor isn't a representation. It is an accessor, a way to get at a representation. The representation is independent of it.
SuggestionRe: Multiple Classes, same name Pin
Ralf Meier17-Jun-20 2:42
professionalRalf Meier17-Jun-20 2:42 
GeneralRe: Multiple Classes, same name Pin
#realJSOP21-Jun-20 1:39
mva#realJSOP21-Jun-20 1:39 
AnswerRe: Multiple Classes, same name Pin
ZurdoDev16-Jun-20 2:20
mveZurdoDev16-Jun-20 2:20 
GeneralRe: Multiple Classes, same name Pin
Wiep Corbier16-Jun-20 2:26
MemberWiep Corbier16-Jun-20 2:26 
GeneralRe: Multiple Classes, same name Pin
ZurdoDev16-Jun-20 2:27
mveZurdoDev16-Jun-20 2:27 
AnswerRe: Multiple Classes, same name Pin
ZurdoDev16-Jun-20 4:05
mveZurdoDev16-Jun-20 4:05 
AnswerRe: Multiple Classes, same name Pin
Gerry Schmitz16-Jun-20 7:06
mveGerry Schmitz16-Jun-20 7:06 
AnswerRe: Multiple Classes, same name Pin
Patrice T16-Jun-20 8:06
mvePatrice T16-Jun-20 8:06 
AnswerRe: Multiple Classes, same name Pin
Mycroft Holmes16-Jun-20 12:46
professionalMycroft Holmes16-Jun-20 12:46 
AnswerRe: Multiple Classes, same name Pin
Simon_Whale17-Jun-20 2:23
professionalSimon_Whale17-Jun-20 2:23 
AnswerRe: Multiple Classes, same name Pin
#realJSOP21-Jun-20 1:35
mva#realJSOP21-Jun-20 1:35 
GeneralRe: Multiple Classes, same name Pin
Bohdan Stupak29-Jun-20 4:05
professionalBohdan Stupak29-Jun-20 4:05 
AnswerRe: Multiple Classes, same name Pin
Bohdan Stupak29-Jun-20 4:03
professionalBohdan Stupak29-Jun-20 4:03 
QuestionAuthentication Error After migration of .net web application from VS2012 (.net 4.0) to VS2019 (.net 4.7.2)project Pin
Rohith PH14-Jun-20 23:42
MemberRohith PH14-Jun-20 23:42 
AnswerRe: Authentication Error while migration of .net web application from VS2012 (.net 4.0) to VS2019 (.net 4.7.2)project Pin
Richard Deeming15-Jun-20 0:22
mveRichard Deeming15-Jun-20 0:22 
GeneralRe: Authentication Error while migration of .net web application from VS2012 (.net 4.0) to VS2019 (.net 4.7.2)project Pin
Rohith PH15-Jun-20 0:32
MemberRohith PH15-Jun-20 0:32 
GeneralRe: Authentication Error while migration of .net web application from VS2012 (.net 4.0) to VS2019 (.net 4.7.2)project Pin
Richard Deeming15-Jun-20 0:47
mveRichard Deeming15-Jun-20 0:47 

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.