Click here to Skip to main content
15,923,789 members
Home / Discussions / C#
   

C#

 
AnswerRe: System.String and Thread Safety Pin
Guffa13-Jun-06 11:46
Guffa13-Jun-06 11:46 
GeneralRe: System.String and Thread Safety Pin
Alexander Wiseman13-Jun-06 11:51
Alexander Wiseman13-Jun-06 11:51 
GeneralRe: System.String and Thread Safety Pin
Leslie Sanford13-Jun-06 12:00
Leslie Sanford13-Jun-06 12:00 
GeneralRe: System.String and Thread Safety Pin
Mr. VB.NET13-Jun-06 12:46
Mr. VB.NET13-Jun-06 12:46 
GeneralRe: System.String and Thread Safety Pin
Judah Gabriel Himango13-Jun-06 13:24
sponsorJudah Gabriel Himango13-Jun-06 13:24 
GeneralRe: System.String and Thread Safety Pin
Leslie Sanford13-Jun-06 13:36
Leslie Sanford13-Jun-06 13:36 
GeneralRe: System.String and Thread Safety Pin
Judah Gabriel Himango13-Jun-06 13:26
sponsorJudah Gabriel Himango13-Jun-06 13:26 
QuestionSharing source code between classes? Pin
Member 9613-Jun-06 10:39
Member 9613-Jun-06 10:39 
I have an unusual situation where I have about 30 classes that have huge swaths of source code that is identical to each class.

Unfortunately about 30 % is unique to each class and I can't just take the similar bits and make a new class out of them because it's a big struct and method to fill that struct from a database (they are IList based class that feeds a read only datagrid and is used for reporting)

What I'm currently doing is copying and pasting but this is tedious and what I'd really like to do is define the chunks of code that are common and have the compiler insert them into the classes on compiling. AFAIK this isn't a feature in visual studio 2k5 or c#.

Does anyone have any ideas or suggestions?
AnswerRe: Sharing source code between classes? Pin
gantww13-Jun-06 10:46
gantww13-Jun-06 10:46 
GeneralRe: Sharing source code between classes? Pin
Member 9613-Jun-06 11:38
Member 9613-Jun-06 11:38 
GeneralRe: Sharing source code between classes? Pin
Guffa13-Jun-06 11:50
Guffa13-Jun-06 11:50 
GeneralRe: Sharing source code between classes? Pin
Member 9613-Jun-06 12:11
Member 9613-Jun-06 12:11 
AnswerRe: Sharing source code between classes? Pin
Guffa13-Jun-06 13:50
Guffa13-Jun-06 13:50 
JokeRe: Sharing source code between classes? Pin
led mike13-Jun-06 11:04
led mike13-Jun-06 11:04 
AnswerRe: Sharing source code between classes? Pin
Ed.Poore13-Jun-06 11:27
Ed.Poore13-Jun-06 11:27 
GeneralRe: Sharing source code between classes? Pin
Member 9613-Jun-06 11:39
Member 9613-Jun-06 11:39 
GeneralRe: Sharing source code between classes? Pin
gantww13-Jun-06 12:47
gantww13-Jun-06 12:47 
GeneralRe: Sharing source code between classes? Pin
Ed.Poore14-Jun-06 3:14
Ed.Poore14-Jun-06 3:14 
AnswerRe: Sharing source code between classes? Pin
Leslie Sanford13-Jun-06 11:47
Leslie Sanford13-Jun-06 11:47 
GeneralRe: Sharing source code between classes? Pin
Mr. VB.NET13-Jun-06 12:47
Mr. VB.NET13-Jun-06 12:47 
QuestionAct like message box Pin
donkaiser13-Jun-06 10:19
donkaiser13-Jun-06 10:19 
AnswerRe: Act like message box Pin
Dan Neely13-Jun-06 10:20
Dan Neely13-Jun-06 10:20 
GeneralRe: Act like message box Pin
Elina Blank13-Jun-06 10:36
sitebuilderElina Blank13-Jun-06 10:36 
GeneralRe: Act like message box Pin
donkaiser13-Jun-06 11:04
donkaiser13-Jun-06 11:04 
AnswerRe: Act like message box Pin
Elina Blank13-Jun-06 10:35
sitebuilderElina Blank13-Jun-06 10:35 

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.