franklin gray [mailto:[EMAIL PROTECTED]] wrote:
> What is a default accessor and how to I implment it? I am > now trying to serialize a class with has a property of a > class that inherits CollectionBase. It's the CLS term for what is called an indexer in C#. In C# this is implemented like so: <codeSnippet language="C#"> public MyType this[int index] { get { ... } set { ... } } </codeSnippet> In VB.NET it is implemented like this: <codeSnippet language="C#"> Public Default Property MyType Item(Integer index) Get ... End Get Set ... End Set End Property </codeSnippet> HTH, Drew You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.