Click here to Skip to main content
15,905,782 members
Home / Discussions / C#
   

C#

 
Question[SOLVED] I need help with NIM GAME IN C# Pin
RES7B4-Nov-18 5:23
RES7B4-Nov-18 5:23 
AnswerRe: I need help with NIM GAME IN C# Pin
OriginalGriff1-Nov-18 21:07
mveOriginalGriff1-Nov-18 21:07 
AnswerRe: I need help with NIM GAME IN C# Pin
Eddy Vluggen4-Nov-18 3:48
professionalEddy Vluggen4-Nov-18 3:48 
AnswerRe: [SOLVED] I need help with NIM GAME IN C# Pin
F-ES Sitecore5-Nov-18 2:32
professionalF-ES Sitecore5-Nov-18 2:32 
QuestionHow to update data to existing PDF using Itextsharp library Pin
pondurelakshman30-Oct-18 19:27
pondurelakshman30-Oct-18 19:27 
AnswerRe: How to update data to existing PDF using Itextsharp library Pin
Richard MacCutchan31-Oct-18 3:09
mveRichard MacCutchan31-Oct-18 3:09 
QuestionWhat is good practice Pin
Member 1351454029-Oct-18 9:57
Member 1351454029-Oct-18 9:57 
AnswerRe: What is good practice Pin
BillWoodruff29-Oct-18 11:45
professionalBillWoodruff29-Oct-18 11:45 
To me a good sign of "good practice" would be that someone else reading your code would have some clear ideas about its structure, and what it does, just by looking at the use of namespaces, classes, method names. variable names.

This is a very broad question, and it may well relate to bigger-picture issues in object-oriented design (OOD). Do you know about SOLID, a coherent set of ideas for OOD [^] ?

In WinForms, you can declare a Class as 'partial to get around the restriction on having a single Class definition across multiple files [^].

Other ways commonly used to group Methods, where the Method has no dependencies, include writing Extension Methods in a static Class [^].

Of course, you can also group Methods into a library, compile that to a .dll, load that into your project, and reference the assembly in your Class' code ... as long as those methods have no innate dependency on your app's run-time objects, declarations, etc.
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot

SuggestionRe: What is good practice Pin
josda100030-Oct-18 6:51
josda100030-Oct-18 6:51 
GeneralRe: What is good practice Pin
BillWoodruff30-Oct-18 17:08
professionalBillWoodruff30-Oct-18 17:08 
AnswerRe: What is good practice Pin
Bernhard Hiller30-Oct-18 22:49
Bernhard Hiller30-Oct-18 22:49 
QuestionUsing InPlaceBitmapMetadataWriter To Write Keywords Failing on Photos from Recent Cameras Pin
richmhouse29-Oct-18 7:37
richmhouse29-Oct-18 7:37 
QuestionScrolling reset when application regains focus Pin
pr1mem0ver29-Oct-18 2:58
pr1mem0ver29-Oct-18 2:58 
AnswerRe: Scrolling reset when application regains focus Pin
BillWoodruff29-Oct-18 11:55
professionalBillWoodruff29-Oct-18 11:55 
QuestionRookie needs help with array Pin
Member 1398787027-Oct-18 5:28
Member 1398787027-Oct-18 5:28 
AnswerRe: Rookie needs help with array Pin
Richard MacCutchan27-Oct-18 5:54
mveRichard MacCutchan27-Oct-18 5:54 
AnswerRe: Rookie needs help with array Pin
OriginalGriff27-Oct-18 6:12
mveOriginalGriff27-Oct-18 6:12 
GeneralRe: Rookie needs help with array Pin
Member 1398787028-Oct-18 12:39
Member 1398787028-Oct-18 12:39 
GeneralRe: Rookie needs help with array Pin
OriginalGriff28-Oct-18 20:58
mveOriginalGriff28-Oct-18 20:58 
Question[Solved]How i deserialize a specific JSON with Newtonsoft Pin
Kapparina26-Oct-18 13:35
Kapparina26-Oct-18 13:35 
AnswerRe: How i deserialize a specific JSON with Newtonsoft Pin
josda100026-Oct-18 17:45
josda100026-Oct-18 17:45 
GeneralRe:How i deserialize a specific JSON with Newtonsoft Pin
Kapparina26-Oct-18 18:11
Kapparina26-Oct-18 18:11 
GeneralRe:How i deserialize a specific JSON with Newtonsoft Pin
josda100029-Oct-18 6:10
josda100029-Oct-18 6:10 
QuestionHow do i do this assignment???? Pin
C#NoobHelpMe25-Oct-18 16:49
C#NoobHelpMe25-Oct-18 16:49 
AnswerRe: How do i do this assignment???? Pin
OriginalGriff25-Oct-18 19:29
mveOriginalGriff25-Oct-18 19:29 

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.