Click here to Skip to main content
15,908,906 members
Home / Discussions / C#
   

C#

 
GeneralRe: Partial Classes - What's The Big Deal? Pin
Andrew Rissing18-Oct-06 11:57
Andrew Rissing18-Oct-06 11:57 
GeneralRe: Partial Classes - What's The Big Deal? Pin
Christian Graus18-Oct-06 11:58
protectorChristian Graus18-Oct-06 11:58 
GeneralRe: Partial Classes - What's The Big Deal? Pin
Andrew Rissing19-Oct-06 5:40
Andrew Rissing19-Oct-06 5:40 
GeneralRe: Partial Classes - What's The Big Deal? Pin
Kevin McFarlane18-Oct-06 12:26
Kevin McFarlane18-Oct-06 12:26 
AnswerRe: Partial Classes - What's The Big Deal? Pin
Christian Graus18-Oct-06 10:03
protectorChristian Graus18-Oct-06 10:03 
GeneralRe: Partial Classes - What's The Big Deal? Pin
#realJSOP18-Oct-06 10:21
professional#realJSOP18-Oct-06 10:21 
AnswerRe: Partial Classes - What's The Big Deal? Pin
Guffa18-Oct-06 10:33
Guffa18-Oct-06 10:33 
GeneralRe: Partial Classes - What's The Big Deal? Pin
Christian Graus18-Oct-06 11:01
protectorChristian Graus18-Oct-06 11:01 
John Simmons / outlaw programmer wrote:
Never, in 17 years of C++ development, have I ever done that


I have to admit, the place it was most used the app was poorly designed, too much stuff going on in the View and Document classes of an MFC app. It's still a valid approach IMO, but not the way I saw it done.

But in .NET, the big thing is hiding the auto generated code, which just gets edited by newbies and clutters the class. I also used them recently, I have an app that has four threads running, I broke the code used by each thread into a partial class, to help me organise my thoughts in how it all worked.

John Simmons / outlaw programmer wrote:
Now, back to the original question (and beyond what Christian provided), what are partial classes good for?


I've given another example. Any example will relate to organisation of code. The files get turned into one class, so there's no benefit beyond ways they help to organise code for the benefit of humans.



Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog

AnswerRe: Partial Classes - What's The Big Deal? Pin
Christian Graus18-Oct-06 11:33
protectorChristian Graus18-Oct-06 11:33 
GeneralRe: Partial Classes - What's The Big Deal? Pin
#realJSOP19-Oct-06 4:23
professional#realJSOP19-Oct-06 4:23 
GeneralRe: Partial Classes - What's The Big Deal? Pin
Robert Rohde19-Oct-06 8:36
Robert Rohde19-Oct-06 8:36 
Questiondate time exception Pin
Mohammed Elkholy18-Oct-06 8:57
Mohammed Elkholy18-Oct-06 8:57 
AnswerRe: date time exception Pin
Christian Graus18-Oct-06 10:04
protectorChristian Graus18-Oct-06 10:04 
AnswerRe: date time exception Pin
Guffa18-Oct-06 11:28
Guffa18-Oct-06 11:28 
QuestionFairly simple Regex question... Pin
rvp717y18-Oct-06 8:12
rvp717y18-Oct-06 8:12 
AnswerRe: Fairly simple Regex question... Pin
Jim Conigliaro18-Oct-06 8:22
Jim Conigliaro18-Oct-06 8:22 
GeneralRe: Fairly simple Regex question... Pin
rvp717y18-Oct-06 11:09
rvp717y18-Oct-06 11:09 
GeneralRe: Fairly simple Regex question... Pin
Guffa18-Oct-06 12:12
Guffa18-Oct-06 12:12 
Questionsystem.web.mail and .net 1.1 Pin
numbers1thru918-Oct-06 8:05
numbers1thru918-Oct-06 8:05 
AnswerRe: system.web.mail and .net 1.1 Pin
Christian Graus18-Oct-06 8:07
protectorChristian Graus18-Oct-06 8:07 
AnswerRe: system.web.mail and .net 1.1 Pin
Aby Thomas Varghese18-Oct-06 8:59
Aby Thomas Varghese18-Oct-06 8:59 
QuestionWindows applications and use of RDBMS Pin
robert11018-Oct-06 7:43
robert11018-Oct-06 7:43 
AnswerRe: Windows applications and use of RDBMS Pin
User 665818-Oct-06 7:56
User 665818-Oct-06 7:56 
Questionplay a wav file Pin
rzvme18-Oct-06 6:46
rzvme18-Oct-06 6:46 
AnswerRe: play a wav file Pin
Christian Graus18-Oct-06 6:52
protectorChristian Graus18-Oct-06 6:52 

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.