Click here to Skip to main content
15,889,745 members
Home / Discussions / C#
   

C#

 
AnswerRe: exception handling for another program, is it possible in c#? Pin
Dave Kreskowiak23-Apr-08 10:05
mveDave Kreskowiak23-Apr-08 10:05 
GeneralRe: exception handling for another program, is it possible in c#? Pin
Cptkli23-Apr-08 11:34
Cptkli23-Apr-08 11:34 
GeneralText Encoding Pin
ayaxian23-Apr-08 5:29
ayaxian23-Apr-08 5:29 
GeneralRe: Text Encoding Pin
Anthony Mushrow23-Apr-08 6:58
professionalAnthony Mushrow23-Apr-08 6:58 
Generalc# and File.copy() function Pin
menelik23-Apr-08 5:10
menelik23-Apr-08 5:10 
GeneralRe: c# and File.copy() function Pin
Luc Pattyn23-Apr-08 8:25
sitebuilderLuc Pattyn23-Apr-08 8:25 
GeneralRe: c# and File.copy() function Pin
Zoltan Balazs23-Apr-08 9:57
Zoltan Balazs23-Apr-08 9:57 
GeneralClass Design Question. Pin
jchigg200023-Apr-08 4:40
jchigg200023-Apr-08 4:40 
Hello all.

I am trying to decide if it's better to have all my classes in one .cs file within my project(for instance 'MyClasses') and then just put all my classes inside that file. This would result in code like this.

MyClasses.MyClass x = new MyClasses.MyClass():

The alternative is obviously putting each individual class in it's own .cs file under the project. This would enable me to simply do

MyClass x = new MyClass();

What is the advantage/disadvantage of doing this both ways?

I do not want to build the classes in a separate project and import the dll. So I'm really just wondering about these 2 different ways of building the classes in my project.
GeneralRe: Class Design Question. Pin
J a a n s23-Apr-08 4:51
professionalJ a a n s23-Apr-08 4:51 
GeneralRe: Class Design Question. Pin
phannon8623-Apr-08 5:00
professionalphannon8623-Apr-08 5:00 
GeneralRe: Class Design Question. Pin
J4amieC23-Apr-08 5:35
J4amieC23-Apr-08 5:35 
QuestionUpdate to property is being applied to other instances of the same class Pin
LynnR23-Apr-08 4:06
LynnR23-Apr-08 4:06 
GeneralRe: Update to property is being applied to other instances of the same class Pin
carbon_golem23-Apr-08 4:21
carbon_golem23-Apr-08 4:21 
GeneralRe: Update to property is being applied to other instances of the same class Pin
LynnR23-Apr-08 4:58
LynnR23-Apr-08 4:58 
GeneralRe: Update to property is being applied to other instances of the same class Pin
carbon_golem23-Apr-08 6:13
carbon_golem23-Apr-08 6:13 
GeneralRe: Update to property is being applied to other instances of the same class Pin
LynnR23-Apr-08 23:55
LynnR23-Apr-08 23:55 
GeneralProblem saving the request.browser object to the database [modified] Pin
Black Haze23-Apr-08 4:04
Black Haze23-Apr-08 4:04 
GeneralRe: Problem saving the request.browser object to the database Pin
Black Haze26-Apr-08 16:36
Black Haze26-Apr-08 16:36 
GeneralArray? Or how can i do this... Pin
softwarejaeger23-Apr-08 3:47
softwarejaeger23-Apr-08 3:47 
GeneralRe: Array? Or how can i do this... Pin
phannon8623-Apr-08 3:52
professionalphannon8623-Apr-08 3:52 
GeneralRe: Array? Or how can i do this... Pin
J a a n s23-Apr-08 3:52
professionalJ a a n s23-Apr-08 3:52 
GeneralRe: Array? Or how can i do this... Pin
phannon8623-Apr-08 3:53
professionalphannon8623-Apr-08 3:53 
GeneralRe: Array? Or how can i do this... Pin
carbon_golem23-Apr-08 3:54
carbon_golem23-Apr-08 3:54 
GeneralRe: Array? Or how can i do this... Pin
carbon_golem23-Apr-08 3:55
carbon_golem23-Apr-08 3:55 
GeneralRe: Array? Or how can i do this... Pin
phannon8623-Apr-08 3:56
professionalphannon8623-Apr-08 3:56 

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.