Click here to Skip to main content
15,905,558 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to scale or zoomx and zoomy? Pin
Blue_Boy1-Sep-10 23:33
Blue_Boy1-Sep-10 23:33 
AnswerRe: how to scale or zoomx and zoomy? Pin
phil.o2-Sep-10 0:33
professionalphil.o2-Sep-10 0:33 
QuestionAbout constructors and initial values for member fields Pin
Dewald1-Sep-10 23:21
Dewald1-Sep-10 23:21 
AnswerRe: About constructors and initial values for member fields Pin
phil.o2-Sep-10 0:21
professionalphil.o2-Sep-10 0:21 
AnswerRe: About constructors and initial values for member fields Pin
Eddy Vluggen2-Sep-10 0:32
professionalEddy Vluggen2-Sep-10 0:32 
AnswerRe: About constructors and initial values for member fields Pin
DaveyM692-Sep-10 0:51
professionalDaveyM692-Sep-10 0:51 
AnswerRe: About constructors and initial values for member fields Pin
PIEBALDconsult2-Sep-10 3:29
mvePIEBALDconsult2-Sep-10 3:29 
AnswerRe: About constructors and initial values for member fields Pin
harold aptroot2-Sep-10 4:10
harold aptroot2-Sep-10 4:10 
The following part of the C# language spec may be of some interest:
§17.4.5 Variable initializers (skipped the example)
none
The default value initialization described in §17.4.3 occurs for all fields, including fields that have variable
initializers. Thus, when a class is initialized, all static fields in that class are first initialized to their default
values, and then the static field initializers are executed in textual order. Likewise, when an instance of a
class is created, all instance fields in that instance are first initialized to their default values, and then the
instance field initializers are executed in textual order. When there are field declarations in multiple partial
type declarations for the same type, the order of the parts is unspecified. However, within each part the field
initializers are executed in order.

All of this happens before any code in the ctor is run, as detailed in:
§17.4.5.2 Instance field initialization
none
The instance field variable initializers of a class correspond to a sequence of assignments that are executed
immediately upon entry to any one of the instance constructors (§17.10.2) of that class. The variable
initializers are executed in the textual order in which they appear in the class declaration. The class instance
creation and initialization process is described further in §17.10.

Questionhow to pass a handler to another form Pin
zhiyuan161-Sep-10 21:57
zhiyuan161-Sep-10 21:57 
AnswerRe: how to pass a handler to another form Pin
phil.o1-Sep-10 22:06
professionalphil.o1-Sep-10 22:06 
AnswerRe: how to pass a handler to another form Pin
Blue_Boy1-Sep-10 22:08
Blue_Boy1-Sep-10 22:08 
AnswerRe: how to pass a handler to another form Pin
Richard MacCutchan1-Sep-10 22:14
mveRichard MacCutchan1-Sep-10 22:14 
GeneralRe: how to pass a handler to another form Pin
zhiyuan161-Sep-10 22:40
zhiyuan161-Sep-10 22:40 
GeneralRe: how to pass a handler to another form Pin
Blue_Boy1-Sep-10 22:59
Blue_Boy1-Sep-10 22:59 
GeneralRe: how to pass a handler to another form Pin
Richard MacCutchan1-Sep-10 23:23
mveRichard MacCutchan1-Sep-10 23:23 
GeneralRe: how to pass a handler to another form Pin
zhiyuan162-Sep-10 3:34
zhiyuan162-Sep-10 3:34 
GeneralRe: how to pass a handler to another form Pin
Richard MacCutchan2-Sep-10 4:09
mveRichard MacCutchan2-Sep-10 4:09 
GeneralRe: how to pass a handler to another form Pin
DaveyM691-Sep-10 23:58
professionalDaveyM691-Sep-10 23:58 
QuestionHow do i Test Automate Datagrid View Pin
arun_pk1-Sep-10 20:01
arun_pk1-Sep-10 20:01 
AnswerRe: How do i Test Automate Datagrid View Pin
Henry Minute2-Sep-10 3:46
Henry Minute2-Sep-10 3:46 
QuestionInplement a precise timer Pin
cateyes991-Sep-10 13:50
cateyes991-Sep-10 13:50 
AnswerRe: Inplement a precise timer Pin
Luc Pattyn1-Sep-10 14:32
sitebuilderLuc Pattyn1-Sep-10 14:32 
GeneralRe: Inplement a precise timer Pin
cateyes992-Sep-10 12:19
cateyes992-Sep-10 12:19 
AnswerRe: Inplement a precise timer Pin
Ritesh Ramesh1-Sep-10 15:22
Ritesh Ramesh1-Sep-10 15:22 
AnswerRe: Inplement a precise timer Pin
PIEBALDconsult1-Sep-10 15:28
mvePIEBALDconsult1-Sep-10 15:28 

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.