public void GetItemPropertiesTest() { ObjectBinder binder = new ObjectBinder(); binder.ListChanged += delegate(object sender, ListChangedEventArgs e) { PropertyDescriptorCollection properties = ((ITypedList)sender).GetItemProperties(null); Assert.That(properties, Is.Not.Null); Assert.That(properties, Is.Not.Empty); }; binder.ItemType = typeof(string); }
public ObjectHolder(object obj, ObjectBinder objectBinder) { _object = obj; _originalProperties = ((ITypedList)objectBinder).GetItemProperties(null); }
public ObjectEnumerator(ObjectBinder objectBinder, DataSourceSelectArguments arguments) { _objectBinder = objectBinder; _arguments = arguments; }