Collections?

Sep 30, 2011 at 10:59 AM

On the front page is says now supporting collections.

Can someone send me some code how to do this - I have looked through the source code and examples and cannot work it out?

I thought I'd be able to create a  "List<type> fieldname" attribute?

Jason

 



Coordinator
Sep 30, 2011 at 3:26 PM

Create a property like this...

List<Car> cars;
		public List<Car> Cars
		{
			get { return cars; }
			set
			{
				if (cars == value) return;
				cars = value;
				OnPropertyChanged("Cars");
			}
		}
Jan 5, 2012 at 11:45 AM
Edited Jan 5, 2012 at 11:45 AM

it's not possible for a simple List<string> ?

Coordinator
Jan 5, 2012 at 11:28 PM

Yes, currently it's expecting a the contained type to have a default constructor. It needs to be enhanced to support Value types.