Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preventing Constructor Method in Base Class to be run
Message
 
To
04/04/2007 22:14:39
Handi Rusli
PT. Alam Sumbervita
Jakarta, Indonesia
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01211906
Message ID:
01212348
Views:
12
This message has been marked as a message which has helped to the initial question of the thread.
Hi,

>Is this rule for C# only or any other .NET Language have the same behaviour ?

That's a rule that C# and most other .NET language enforce. In IL you can create a constructor that doesn't call the parent constructor. The CLR won't complain and instantiate the type just fine. However, such an assembly wouldn't pass peVerify anymore.
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform