Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

No support for multiple default indexers

#11

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"; }
}

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

State: new
Milestone: none
Assigned to: nobody

Activity

  1. James Gregory
    James Gregory

    Thanks for reporting this. I've been out of town so I missed when you added it.

    April 20th, 2009 @ 11:46 AM

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.