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)
305
properties = ListBindingHelper.
GetListItemProperties
(list, null, Array.Empty<PropertyDescriptor>())?.Cast<PropertyDescriptor>();
309
properties = ListBindingHelper.
GetListItemProperties
(list, string.Empty, Array.Empty<PropertyDescriptor>())?.Cast<PropertyDescriptor>();
415
properties = ListBindingHelper.
GetListItemProperties
(list, null, listAccessors)?.Cast<PropertyDescriptor>();
419
properties = ListBindingHelper.
GetListItemProperties
(list, string.Empty, listAccessors)?.Cast<PropertyDescriptor>();
437
IEnumerable<PropertyDescriptor> properties = ListBindingHelper.
GetListItemProperties
(list, dataMember, listAccessors)?.Cast<PropertyDescriptor>();
452
Assert.Throws<ArgumentException>(() => ListBindingHelper.
GetListItemProperties
(list, dataMember, null));
459
Assert.Throws<TargetInvocationException>(() => ListBindingHelper.
GetListItemProperties
(new DataClass(), null, TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray()));
460
Assert.Throws<TargetInvocationException>(() => ListBindingHelper.
GetListItemProperties
(new DataClass(), string.Empty, TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray()));