There are some interop situations where the runtime could not guarantee that
such a constructor would be run, and therefore the language prohibits you
from writing one.
Initializing fields is the same issue, as it is done as part of the
constructor.
--
Eric Gunnerson
Visit the C# product team at
http://www.csharp.net
Eric's blog is at
http://blogs.gotdotnet.com/ericgu/
This posting is provided "AS IS" with no warranties, and confers no rights.
"Jamil Ahmed" <na********@yahoo.com> wrote in message
news:uN**************@TK2MSFTNGP11.phx.gbl...
I have two questions about Structure in CSharp:
1. Why we can not override the Default Constructor in Structure.
2. Why we can not initialize the Fields in Structure.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!