Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting method in sub class
Message
De
31/03/2015 09:06:46
 
 
À
31/03/2015 09:00:38
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01617154
Message ID:
01617485
Vues:
23
>>>Hmm. Don't think so. The type of toOriginator will be the that of the child class instance. You need to explicitly test the DeclaringType against the base (root) class
>
>toOriginator is the base class.
>
>This detection is called from the base class only. The Me being passed here is from the base class:
>
>
>        ' If the method exists in the client class
>        If loReflection.IsMethodExistInSubClass(Me, "InitializeWithRow") Then
>        End If
>
Doesn't work that way in C#. Be very surprised if that was the case in VB.NET - the type of 'Me' will be the type of the instance.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform