Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with Array and Reflection
Message
 
To
10/12/2006 13:31:06
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01176405
Message ID:
01176422
Views:
9
>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?

I don't think so...

Are there different overloads for this method? If so Reflection requires some additional code to ensure you get the right signature of rhte method you are calling.

You might want to check the actual error message fired by the reflection method call.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform