Click here to Skip to main content
15,844,752 members
Home / Discussions / C#
   

C#

 
GeneralRe: newbie using a game to learn c# and object-oriented programming Could I make an abstract factory to merge the other factories in a game? Pin
biull smith21-Dec-21 5:17
biull smith21-Dec-21 5:17 
GeneralRe: newbie using a game to learn c# and object-oriented programming Could I make an abstract factory to merge the other factories in a game? Pin
lmoelleb22-Dec-21 1:34
lmoelleb22-Dec-21 1:34 
GeneralRe: newbie using a game to learn c# and object-oriented programming Could I make an abstract factory to merge the other factories in a game? Pin
biull smith6-Jan-22 11:08
biull smith6-Jan-22 11:08 
AnswerRe: newbie using a game to learn c# and object-oriented programming Could I make an abstract factory to merge the other factories in a game? Pin
Gerry Schmitz21-Dec-21 7:30
mveGerry Schmitz21-Dec-21 7:30 
GeneralRe: newbie using a game to learn c# and object-oriented programming Could I make an abstract factory to merge the other factories in a game? Pin
biull smith21-Dec-21 8:01
biull smith21-Dec-21 8:01 
GeneralRe: newbie using a game to learn c# and object-oriented programming Could I make an abstract factory to merge the other factories in a game? Pin
Gerry Schmitz21-Dec-21 8:22
mveGerry Schmitz21-Dec-21 8:22 
GeneralRe: newbie using a game to learn c# and object-oriented programming Could I make an abstract factory to merge the other factories in a game? Pin
biull smith21-Dec-21 9:29
biull smith21-Dec-21 9:29 
GeneralRe: newbie using a game to learn c# and object-oriented programming Could I make an abstract factory to merge the other factories in a game? Pin
Gerry Schmitz21-Dec-21 11:04
mveGerry Schmitz21-Dec-21 11:04 
I think you need a better handle on serializing a class. I think you have an opportunity to make your code more "generic" (which means fewer lines).

Examples of XML Serialization | Microsoft Docs

Generic Methods - C# Programming Guide | Microsoft Docs

Maybe your tutorial "started" with XML; in my case, for game tables, I typically build them in code as classes, and serialize / deserialize them to / from XML, if needed. Just find them easier to maintain and integrate that way; even for 100 entries or so. Stick everything in a "data class library".


"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I


modified 21-Dec-21 16:18pm.

QuestionRe: newbie using a game to learn c# and object-oriented programming Could I make an abstract factory to merge the other factories in a game? Pin
biull smith21-Dec-21 14:15
biull smith21-Dec-21 14:15 
AnswerRe: newbie using a game to learn c# and object-oriented programming Could I make an abstract factory to merge the other factories in a game? Pin
Gerry Schmitz21-Dec-21 18:56
mveGerry Schmitz21-Dec-21 18:56 
GeneralRe: newbie using a game to learn c# and object-oriented programming Could I make an abstract factory to merge the other factories in a game? Pin
biull smith6-Jan-22 11:18
biull smith6-Jan-22 11:18 
QuestionTotal Newbie... just installing Visual Studio... Pin
Audio Babble17-Dec-21 7:08
Audio Babble17-Dec-21 7:08 
AnswerRe: Total Newbie... just installing Visual Studio... Pin
OriginalGriff17-Dec-21 7:12
mveOriginalGriff17-Dec-21 7:12 
GeneralRe: Total Newbie... just installing Visual Studio... Pin
Audio Babble17-Dec-21 7:24
Audio Babble17-Dec-21 7:24 
QuestionDisplaying data in a textBox Pin
Luis M. Rojas16-Dec-21 9:50
Luis M. Rojas16-Dec-21 9:50 
AnswerRe: Displaying data in a textBox Pin
trønderen16-Dec-21 10:10
trønderen16-Dec-21 10:10 
AnswerRe: Displaying data in a textBox Pin
OriginalGriff16-Dec-21 10:50
mveOriginalGriff16-Dec-21 10:50 
GeneralRe: Displaying data in a textBox Pin
Eddy Vluggen17-Dec-21 2:14
professionalEddy Vluggen17-Dec-21 2:14 
GeneralRe: Displaying data in a textBox Pin
OriginalGriff17-Dec-21 2:42
mveOriginalGriff17-Dec-21 2:42 
GeneralRe: Displaying data in a textBox Pin
Eddy Vluggen17-Dec-21 3:58
professionalEddy Vluggen17-Dec-21 3:58 
QuestionMonthCalendar - Adding a date without having the month or year. Pin
Richard A Knox16-Dec-21 4:06
Richard A Knox16-Dec-21 4:06 
AnswerRe: MonthCalendar - Adding a date without having the month or year. Pin
PIEBALDconsult16-Dec-21 4:07
mvePIEBALDconsult16-Dec-21 4:07 
AnswerRe: MonthCalendar - Adding a date without having the month or year. Pin
OriginalGriff16-Dec-21 5:09
mveOriginalGriff16-Dec-21 5:09 
AnswerRe: MonthCalendar - Adding a date without having the month or year. Pin
#realJSOP17-Dec-21 3:40
mve#realJSOP17-Dec-21 3:40 
Questionre-create a local database Pin
steven_noppe15-Dec-21 21:04
steven_noppe15-Dec-21 21:04 

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.