TargetParameterCountException

Developer
Mar 12, 2007 at 1:19 PM
Hi,
Thank you for your effort, it is a nice tool.

Till now it just throws the 'System.Reflection.TargetParameterCountException' in the statement:

if (IsCollection(p.GetValue(obj, new object0)))...

line 44 in ReflectorHelper class when I try to explore the items in the second or third level.



Coordinator
Mar 16, 2007 at 11:15 AM
Hi Aya,
Did u started working on the issue?
Do u encouter some problems?
Regards
Developer
Mar 16, 2007 at 12:19 PM
Edited Mar 16, 2007 at 12:20 PM

Hi Hayder,

I am trying to know the reason of the 'TargetParameterCountException' but till now I can't fix the problem, can you help me?

Coordinator
Mar 19, 2007 at 5:37 PM
Hi,
Sorry to be late. I am in vacation these days.
I fact, it's not an array bug as i thought. The bug occurs with indexers when the object does not implement IList, ICollection or any other collection interfaces. An example is : ListEvenHandler. This object has a string indexer but it's not a HashTable or a simple collection. So the solution is when the Property has many arguments and it's not a collection, just ignore it.
I already fixed some other issues. I'll post the code back tomorrow.
Developer
Mar 19, 2007 at 10:03 PM
Hi,
Yes I was expecting that the bug is not in the arrays.
I am waiting your fixed version,
Thanks,
Aya.
Developer
Mar 21, 2007 at 7:49 PM
Hi Hayder,
I am waiting your code . Is there any developments.
I am sorry for troubling you, but your solution is the unique succor for me. I am really need it.
Thanks too much.
Aya.
Coordinator
Mar 22, 2007 at 8:29 AM
Hi,
It's done and sorry to be late and that's because i was in vacation as i said.
I am waiting for ure suggestions before we can make the first release.
Hayder
Developer
Mar 22, 2007 at 2:39 PM
Hi,
Thanks a lot , it is very nice now.
We just can adjust some small things since when I travel through the object ,I reach to some points that can be expandede but there is no expansion for it.
I will try to debug it and see why.
Thanks again.
Aya.