Hello Dale,
As for the "default accessor", it means the default propety that used to
access the item in a collection based on index key. e.g. In the following
custom collection class, the " public Int16 this[int index]" property is
the default accessor:
=====================
public class Int16Collection : CollectionBase
{
public Int16Collection()
{
}
public Int16 this[int index]
{
get
{
return ((Int16)List[index]);
}
set
{
List[index] = value;
}
}
public int Add(Int16 value)
{
return (List.Add(value));
}
.............................
========================
Are you using VB.NET or C#, if convenient, would you also provide the
complete custom collection class code here or a simplified test class which
also suffer the problem?
Based on my research, there are some one who suffer the same issue, and
mostly are in webservice or other XML Serialization scenario. You can
verify the above default accessor and also add a default constructor(no
parameter constructor) for your custom collection class to see whether it
helps.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.