Strange Error when seeking Collection.Count

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

At Design time, whenever I look for a value (In intellisense or in the Watch
window) for .Count of any of my generic based collections, I see the
following:

{"The generic type 'System.Collections.ObjectModel.Collection`1' was used
with the wrong number of generic arguments in assembly 'mscorlib,
Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'.":"System.Collections.ObjectModel.Collection`1"}

No error is generated at run time, and .Count provides the correct value. Am
I doing something wrong when creating the collection?
TIA
Jav
 
How can you be looking for the count of a collection at design-time?
Collections don't get populated until run-time.
 
Scott,
I am not "looking for a count". When I move the mouse pointer on "count", I
see the error messge. I am not expecting to see a result, but I am also not
expecting to see an error message.
 
Why *wouldn't* you be expecting an error message? If the collection isn't
instatiated and/or populated yet, there is nothing to see.
 
Back
Top