Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Preventing Constructor Method in Base Class to be run
Message
 
À
04/04/2007 22:14:39
Handi Rusli
PT. Alam Sumbervita
Jakarta, Indonésie
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01211906
Message ID:
01212348
Vues:
11
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform