You're probably thinking of an indexer in C# (VB uses the keyword 'Default').
e.g.,
public class ClassWithIndexer
{
private int[] basearray;
public int this[int index]
{
get { return basearray[index]; }
set { basearray[index] = value };
}
}
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C#/VB to C++ converter
C# Code Metrics: Quick metrics for C#
"Water Cooler v2" wrote:
> Is there support for designating a method of a class as the class'
> default method? I believe there is some attribute that you append to
> the method. Some [Default()] or [DefaultMethod()] or something I guess.
> Can't remember.
>
>