Click here to Skip to main content
15,885,365 members
Home / Discussions / C#
   

C#

 
GeneralRe: Writing source code in seperate files Pin
Eddy Vluggen27-Jan-12 23:44
professionalEddy Vluggen27-Jan-12 23:44 
GeneralRe: Writing source code in seperate files Pin
Richard MacCutchan28-Jan-12 0:19
mveRichard MacCutchan28-Jan-12 0:19 
GeneralRe: Writing source code in seperate files Pin
Eddy Vluggen28-Jan-12 5:19
professionalEddy Vluggen28-Jan-12 5:19 
GeneralRe: Writing source code in seperate files Pin
Richard MacCutchan28-Jan-12 5:26
mveRichard MacCutchan28-Jan-12 5:26 
GeneralRe: Writing source code in seperate files Pin
AmitGajjar28-Jan-12 21:35
professionalAmitGajjar28-Jan-12 21:35 
GeneralRe: Writing source code in seperate files Pin
Richard MacCutchan28-Jan-12 22:06
mveRichard MacCutchan28-Jan-12 22:06 
GeneralRe: Writing source code in seperate files Pin
Luc Pattyn28-Jan-12 22:16
sitebuilderLuc Pattyn28-Jan-12 22:16 
AnswerRe: Writing source code in seperate files Pin
Dean Oliver27-Jan-12 22:38
Dean Oliver27-Jan-12 22:38 
If you referring to writing classes with an extensive amount of code. Then I'd suggest you use the "partial" key word. That way you can spread your class over separate files. In each file you just call the full declaration of the class but with the partial key word. Eg;
C#
public partial class Employee
{
    public void DoWork()
    {
    }
}

public partial class Employee
{
    public void GoToLunch()
    {
    }
}

http://msdn.microsoft.com/en-us/library/wa80x488%28v=vs.80%29.aspx[^]
AnswerRe: Writing source code in seperate files Pin
jschell28-Jan-12 4:35
jschell28-Jan-12 4:35 
GeneralRe: Writing source code in seperate files Pin
PIEBALDconsult28-Jan-12 13:34
mvePIEBALDconsult28-Jan-12 13:34 
AnswerRe: Writing source code in seperate files PinPopular
Eddy Vluggen28-Jan-12 5:29
professionalEddy Vluggen28-Jan-12 5:29 
GeneralRe: Writing source code in seperate files Pin
PIEBALDconsult28-Jan-12 13:37
mvePIEBALDconsult28-Jan-12 13:37 
AnswerRe: Writing source code in seperate files Pin
BobJanova28-Jan-12 6:32
BobJanova28-Jan-12 6:32 
QuestionSimple MultiThread question Pin
PozzaVecia27-Jan-12 20:51
PozzaVecia27-Jan-12 20:51 
AnswerRe: Simple MultiThread question Pin
OriginalGriff27-Jan-12 21:14
mveOriginalGriff27-Jan-12 21:14 
GeneralRe: Simple MultiThread question Pin
PozzaVecia28-Jan-12 1:21
PozzaVecia28-Jan-12 1:21 
GeneralRe: Simple MultiThread question Pin
OriginalGriff28-Jan-12 2:41
mveOriginalGriff28-Jan-12 2:41 
AnswerRe: Simple MultiThread question Pin
Luc Pattyn27-Jan-12 22:22
sitebuilderLuc Pattyn27-Jan-12 22:22 
GeneralRe: Simple MultiThread question Pin
PozzaVecia28-Jan-12 1:56
PozzaVecia28-Jan-12 1:56 
AnswerRe: Simple MultiThread question Pin
Luc Pattyn28-Jan-12 2:29
sitebuilderLuc Pattyn28-Jan-12 2:29 
GeneralRe: Simple MultiThread question Pin
harold aptroot28-Jan-12 2:24
harold aptroot28-Jan-12 2:24 
AnswerRe: Simple MultiThread question Pin
Luc Pattyn28-Jan-12 2:50
sitebuilderLuc Pattyn28-Jan-12 2:50 
AnswerRe: Simple MultiThread question Pin
BobJanova28-Jan-12 6:45
BobJanova28-Jan-12 6:45 
GeneralRe: Simple MultiThread question Pin
PozzaVecia28-Jan-12 9:50
PozzaVecia28-Jan-12 9:50 
QuestionConverting MySqlDateTime Pin
Ian_urquhart27-Jan-12 4:50
Ian_urquhart27-Jan-12 4:50 

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.