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

C#

 
GeneralRe: which constructor gets called first? Pin
Guffa22-Jul-07 10:11
Guffa22-Jul-07 10:11 
GeneralRe: which constructor gets called first? Pin
Luc Pattyn22-Jul-07 9:39
sitebuilderLuc Pattyn22-Jul-07 9:39 
Hi Paul,

the problem with your examples is they show result, not source.

Anyway, I did my little experiment and I observed:

PRE gives non-proportional font, pink background, and preservation of spaces and tabs

CODE gives non-proportional font, red foreground (hardly noticable), and when copying several
lines then newlines are lost.

for both: the optional "lang=cs" does not do anything.


My conclusion:
- I will continue to use PRE without CODE for blocks of code, (so one can copy them easily)
- I will occasionally use CODE without PRE inside a text alinea to quote a piece of
code that fits on a single line (so the newline-not-copied problem isnt relevant).

Does this match your view on things ?

Regards



GeneralRe: which constructor gets called first? Pin
Paul Conrad22-Jul-07 9:51
professionalPaul Conrad22-Jul-07 9:51 
GeneralRe: which constructor gets called first? Pin
Luc Pattyn22-Jul-07 9:57
sitebuilderLuc Pattyn22-Jul-07 9:57 
GeneralRe: which constructor gets called first? Pin
Luc Pattyn22-Jul-07 10:00
sitebuilderLuc Pattyn22-Jul-07 10:00 
GeneralRe: which constructor gets called first? Pin
Paul Conrad22-Jul-07 10:00
professionalPaul Conrad22-Jul-07 10:00 
GeneralRe: which constructor gets called first? Pin
Guffa22-Jul-07 10:15
Guffa22-Jul-07 10:15 
GeneralRe: which constructor gets called first? Pin
Paul Conrad22-Jul-07 10:19
professionalPaul Conrad22-Jul-07 10:19 
GeneralRe: which constructor gets called first? Pin
Luc Pattyn22-Jul-07 10:27
sitebuilderLuc Pattyn22-Jul-07 10:27 
GeneralRe: which constructor gets called first? Pin
Paul Conrad22-Jul-07 10:37
professionalPaul Conrad22-Jul-07 10:37 
GeneralRe: which constructor gets called first? Pin
Luc Pattyn22-Jul-07 10:51
sitebuilderLuc Pattyn22-Jul-07 10:51 
GeneralRe: which constructor gets called first? Pin
Paul Conrad22-Jul-07 11:08
professionalPaul Conrad22-Jul-07 11:08 
GeneralRe: which constructor gets called first? Pin
Paul Conrad22-Jul-07 9:57
professionalPaul Conrad22-Jul-07 9:57 
QuestionCreating Screen Saver in C# [modified] Pin
Identity Undisclosed22-Jul-07 1:15
Identity Undisclosed22-Jul-07 1:15 
AnswerRe: Creating Screen Saver in C# Pin
Luc Pattyn22-Jul-07 1:23
sitebuilderLuc Pattyn22-Jul-07 1:23 
GeneralRe: Creating Screen Saver in C# Pin
Identity Undisclosed22-Jul-07 1:44
Identity Undisclosed22-Jul-07 1:44 
GeneralRe: Creating Screen Saver in C# Pin
Luc Pattyn22-Jul-07 2:05
sitebuilderLuc Pattyn22-Jul-07 2:05 
GeneralRe: Creating Screen Saver in C# Pin
Identity Undisclosed22-Jul-07 2:19
Identity Undisclosed22-Jul-07 2:19 
GeneralRe: Creating Screen Saver in C# Pin
Luc Pattyn22-Jul-07 2:31
sitebuilderLuc Pattyn22-Jul-07 2:31 
QuestionGridview with 2 lines Pin
dabuskol22-Jul-07 1:04
dabuskol22-Jul-07 1:04 
AnswerRe: Gridview with 2 lines Pin
Arun.Immanuel22-Jul-07 1:28
Arun.Immanuel22-Jul-07 1:28 
GeneralRe: Gridview with 2 lines Pin
dabuskol22-Jul-07 1:33
dabuskol22-Jul-07 1:33 
GeneralRe: Gridview with 2 lines Pin
Arun.Immanuel22-Jul-07 2:21
Arun.Immanuel22-Jul-07 2:21 
Questionassembly: AssemblyKeyFile not supported in VS2005? Pin
George_George22-Jul-07 0:50
George_George22-Jul-07 0:50 
QuestionRedraw in a pictureBox Pin
eskape1922-Jul-07 0:42
eskape1922-Jul-07 0:42 

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.