Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with Array and Reflection
Message
De
10/12/2006 13:31:06
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Problem with Array and Reflection
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01176405
Message ID:
01176405
Vues:
61
This method works well:
        ' VFP inlist equivalent
        ' expO1 Item where all the items will be tried to look into
        ' expO2 Param array for a list of items
        Public Function Inlist(ByVal toItem As IComparable, ByVal ParamArray toItems() As IComparable) As Boolean
            Return Array.IndexOf(toItems, toItem) <> -1
        End Function
But, if this method is called from a method that has been initiated with Reflection, it will fail. There seems to be a conflict or a bug between the use of Array when being executed when Reflection is active.

Anyone would know a workaround?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform