9 references to GetListItemProperties
System.Windows.Forms (1)
System\Windows\Forms\DataBinding\BindingSource.cs (1)
1552
return ListBindingHelper.
GetListItemProperties
(ds, _dataMember, listAccessors);
System.Windows.Forms.Tests (8)
System\Windows\Forms\ListBindingHelperTests.cs (8)
303
properties = ListBindingHelper.
GetListItemProperties
(list, null, Array.Empty<PropertyDescriptor>())?.Cast<PropertyDescriptor>();
307
properties = ListBindingHelper.
GetListItemProperties
(list, string.Empty, Array.Empty<PropertyDescriptor>())?.Cast<PropertyDescriptor>();
413
properties = ListBindingHelper.
GetListItemProperties
(list, null, listAccessors)?.Cast<PropertyDescriptor>();
417
properties = ListBindingHelper.
GetListItemProperties
(list, string.Empty, listAccessors)?.Cast<PropertyDescriptor>();
435
IEnumerable<PropertyDescriptor> properties = ListBindingHelper.
GetListItemProperties
(list, dataMember, listAccessors)?.Cast<PropertyDescriptor>();
450
Assert.Throws<ArgumentException>(() => ListBindingHelper.
GetListItemProperties
(list, dataMember, null));
457
Assert.Throws<TargetInvocationException>(() => ListBindingHelper.
GetListItemProperties
(new DataClass(), null, TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray()));
458
Assert.Throws<TargetInvocationException>(() => ListBindingHelper.
GetListItemProperties
(new DataClass(), string.Empty, TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray()));