Re: constructors/default values
Adam Sills <[email protected]> Tue, 2 Jan 2007 09:42:50 -0600
| Newsgroups | gmane.comp.windows.devel.dotnet.cx |
|---|---|
| Message-ID | <[email protected]> |
The variable declaration line assignment occurs before the constructor does. There's no significant difference in an instance variable/ctor. Only static fields/constructors have any real problem (google for beforeFieldInit). Adam.. -----Original Message----- From: Discussion relating to the specifics of the C# and Managed C++ languages [mailto:[email protected]] On Behalf Of Peter Osucha Sent: Tuesday, January 02, 2007 9:12 AM To: [email protected] Subject: [DOTNET-CX] constructors/default values What is the difference (practically) in assigning a variable value in the variable declaration line and in the constructor? -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.2/613 - Release Date: 1/1/2007 2:50 PM =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com