Menu

#5 AmbiguousMatchException

open
nobody
None
8
2006-12-12
2006-12-12
No

if u use class below as business class in BindingListView, AmbiguousMatchException occurs at protected internal object CreateProvidedView(ObjectView<T> @object, PropertyDescriptor sourceListProperty) method.

Example Class:

class BusinessObject
{
private string name;
private string surname;

public string Name
{
get { return name; }
set { name = value; }
}

public string Surname
{
get { return surname; }
set { surname = value; }
}

public BusinessObject(string name, string surname)
{
this.name = name;
this.surname = surname;
}
public IList<String> Defaults
{
get
{
return null;
}
}
}
=========================================

Problem is at
.
.
.
public IList<String> Defaults
{
get
{
return null;
}
}
.
.
.

function.

Discussion

  • Gokcer Gokdal

    Gokcer Gokdal - 2006-12-12
    • priority: 5 --> 8
     
  • James Telfer

    James Telfer - 2007-04-19

    Logged In: YES
    user_id=1281267
    Originator: NO

    I have added patch 1703382 which will fix this issue for some use-cases. See the patch details for more information.

    Cheers,
    JT

     

Log in to post a comment.