예제 #1
0
		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);
		}
예제 #2
0
		public ObjectHolder(object obj, ObjectBinder objectBinder)
		{
			_object             = obj;
			_originalProperties = ((ITypedList)objectBinder).GetItemProperties(null);
		}
예제 #3
0
			public ObjectEnumerator(ObjectBinder objectBinder, DataSourceSelectArguments arguments)
			{
				_objectBinder = objectBinder;
				_arguments    = arguments;
			}
예제 #4
0
 public ObjectHolder(object obj, ObjectBinder objectBinder)
 {
     _object             = obj;
     _originalProperties = ((ITypedList)objectBinder).GetItemProperties(null);
 }