Click here to Skip to main content
15,919,613 members
Home / Discussions / C#
   

C#

 
QuestionDataGridView IDENTITY column binding problem Pin
Deian11-Mar-07 9:13
Deian11-Mar-07 9:13 
AnswerRe: DataGridView IDENTITY column binding problem Pin
Deian11-Mar-07 11:31
Deian11-Mar-07 11:31 
Questionsimple 2d graphics with c# Pin
liquidfluid11-Mar-07 8:35
liquidfluid11-Mar-07 8:35 
AnswerRe: simple 2d graphics with c# Pin
Ed.Poore11-Mar-07 8:50
Ed.Poore11-Mar-07 8:50 
Questionmarshaling of the const char * Pin
MinaFawzi11-Mar-07 6:21
MinaFawzi11-Mar-07 6:21 
AnswerRe: marshaling of the const char * Pin
Ed.Poore11-Mar-07 7:52
Ed.Poore11-Mar-07 7:52 
QuestionPassing member variables as private method arguments? Pin
David Veeneman11-Mar-07 5:38
David Veeneman11-Mar-07 5:38 
AnswerRe: Passing member variables as private method arguments? Pin
S. Senthil Kumar11-Mar-07 5:55
S. Senthil Kumar11-Mar-07 5:55 
I'd say you're approach is more "procedural programming" oriented than OO oriented. While your approach has its advantages, I generally prefer to let the private methods be intelligent. My public methods usually do only parameter validation and simple state manipulation and let the private methods handle the heavy work. Private methods "hide" how they accomplish the job - which implies that private methods directly deal with member variables.

Have you tried running one of those code analysis tools (FxCop, VS 2005's Code Analyzer)? I distinctly remember one of them suggesting that methods defined in your style be made static. And it makes sense too, they don't need to interact with the state of the object.

Regards
Senthil [MVP - Visual C#]
_____________________________
My Blog | My Articles | My Flickr | WinMacro

GeneralRe: Passing member variables as private method arguments? Pin
David Veeneman11-Mar-07 7:32
David Veeneman11-Mar-07 7:32 
AnswerRe: Passing member variables as private method arguments? Pin
Christian Graus11-Mar-07 4:55
protectorChristian Graus11-Mar-07 4:55 
AnswerRe: Passing member variables as private method arguments? Pin
Leslie Sanford11-Mar-07 16:52
Leslie Sanford11-Mar-07 16:52 
GeneralRe: Passing member variables as private method arguments? Pin
David Veeneman11-Mar-07 7:36
David Veeneman11-Mar-07 7:36 
GeneralRe: Passing member variables as private method arguments? Pin
David Veeneman12-Mar-07 4:14
David Veeneman12-Mar-07 4:14 
QuestionGenerate Panel Pin
shamsteady11-Mar-07 5:35
shamsteady11-Mar-07 5:35 
AnswerRe: Generate Panel Pin
Dave Kreskowiak11-Mar-07 6:48
mveDave Kreskowiak11-Mar-07 6:48 
QuestionAutomatically paste into active window from my code Pin
Cedric_NewUser11-Mar-07 5:19
Cedric_NewUser11-Mar-07 5:19 
QuestionHow to create a control panel for my DVD Playback Windows Application Pin
Khoramdin11-Mar-07 4:04
Khoramdin11-Mar-07 4:04 
AnswerRe: How to create a control panel for my DVD Playback Windows Application Pin
Christian Graus11-Mar-07 4:51
protectorChristian Graus11-Mar-07 4:51 
GeneralRe: How to create a control panel for my DVD Playback Windows Application Pin
Khoramdin11-Mar-07 6:16
Khoramdin11-Mar-07 6:16 
QuestionData Adaptor parameter in Sub Pin
moali7211-Mar-07 0:36
moali7211-Mar-07 0:36 
GeneralALREADY POSTED Pin
CPallini11-Mar-07 0:55
mveCPallini11-Mar-07 0:55 
QuestionAdd panel Pin
shamsteady10-Mar-07 23:21
shamsteady10-Mar-07 23:21 
AnswerRe: Add panel Pin
Dawid Mazuruk10-Mar-07 23:27
Dawid Mazuruk10-Mar-07 23:27 
GeneralRe: Add panel Pin
shamsteady10-Mar-07 23:32
shamsteady10-Mar-07 23:32 
QuestionDataGridView Data Filtering Pin
freshonlineMax10-Mar-07 21:19
freshonlineMax10-Mar-07 21:19 

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.