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

C#

 
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 
John Cardinal wrote:
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?


Hmm, I don't think this is what you're looking for, but code snippets might help automate the copying and pasting. It's not the same as a compiler inserting code into a class at compile time, which, to be honest, I'm not really sure I understand, but it would certain save on key strokes.
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 
QuestionOut of memory Pin
Nick H. Lauritsen13-Jun-06 10:18
Nick H. Lauritsen13-Jun-06 10:18 
AnswerRe: Out of memory Pin
gantww13-Jun-06 10:50
gantww13-Jun-06 10:50 
GeneralRe: Out of memory [modified] Pin
Nick H. Lauritsen14-Jun-06 8:42
Nick H. Lauritsen14-Jun-06 8:42 
QuestionWeb.config file for localhost Pin
leckey13-Jun-06 9:46
leckey13-Jun-06 9:46 
QuestionCentering text with respect to width of UserControl Pin
TheBlindWatchmaker13-Jun-06 8:25
TheBlindWatchmaker13-Jun-06 8:25 
AnswerRe: Centering text with respect to width of UserControl Pin
Dustin Metzgar13-Jun-06 8:37
Dustin Metzgar13-Jun-06 8:37 
GeneralRe: Centering text with respect to width of UserControl Pin
TheBlindWatchmaker13-Jun-06 8:44
TheBlindWatchmaker13-Jun-06 8:44 
AnswerRe: Centering text with respect to width of UserControl Pin
NaNg1524113-Jun-06 8:44
NaNg1524113-Jun-06 8:44 
GeneralRe: Centering text with respect to width of UserControl Pin
TheBlindWatchmaker13-Jun-06 8:46
TheBlindWatchmaker13-Jun-06 8:46 
AnswerRe: removing a table with DataSet Pin
Mr. VB.NET13-Jun-06 12:49
Mr. VB.NET13-Jun-06 12:49 
GeneralRe: removing a table with DataSet Pin
Mr. VB.NET14-Jun-06 5:08
Mr. VB.NET14-Jun-06 5:08 

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.