#11 new
styx31

No support for multiple default indexers

Reported by styx31 | April 10th, 2009 @ 10:55 AM

Docu fails with an ArgumentException "An item with the same key has already been added." on PropertyGenerator when a class exposes more than one default indexer.

Example :

/// <summary>
/// Returns "Hey".
/// </summary>
/// <param name="index">The index</param>
/// <returns>"Hey"</returns>
public string this[int index]
{
    get { return "Hey"; }
}

/// <summary>
/// Returns "How".
/// </summary>
/// <param name="name">The name</param>
/// <returns>"How"</returns>
public string this[string name]
{
    get { return "How"; }
}

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Simple documentation done simply

People watching this ticket

Pages