#4 inding fails if source collection contain array property

open
nobody
None
5
2006-11-20
2006-11-20
Anonymous
No

for example:
public class BusinessEntity : INotifyPropertyChanged
{
.......
private byte[] _timestamp;
public virtual byte[] Timestamp
{
get { return _timestamp; }
set
{
_timestamp = value;
}
}
........
}

When Timestamp is null:

System.Reflection.AmbiguousMatchException was unhandled
Message="Ambiguous match found."
Source="mscorlib"
StackTrace:
at System.DefaultBinder.BindToMethod(BindingFlags bindingAttr, MethodBase[] canidates, Object[]& args, ParameterModifier[] modifiers, CultureInfo cultureInfo, String[] names, Object& state)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, Object[] args)
at Equin.ApplicationFramework.AggregateBindingListView`1.CreateProvidedView(ObjectView`1 object, PropertyDescriptor sourceListProperty) in c:\Projects\BindingListView\src\BindingListView\AggregateBindingListView.cs:line 2006
at Equin.ApplicationFramework.ObjectView`1.CreateProvidedViews() in c:\Projects\BindingListView\ObjectView.cs:line 156
at Equin.ApplicationFramework.ObjectView`1..ctor(T object, AggregateBindingListView`1 parent) in c:\Projects\BindingListView\ObjectView.cs:line 44
at Equin.ApplicationFramework.AggregateBindingListView`1.AddNew() in c:\Projects\BindingListView\AggregateBindingListView.cs:line 302
at Equin.ApplicationFramework.AggregateBindingListView`1.System.ComponentModel.IBindingList.AddNew() in c:\Projects\BindingListView\AggregateBindingListView.cs:line 1612

Discussion


Log in to post a comment.