c# - Can ViewModel have property of type IEnumerable<> instead of Array -
i construct viewmodel this:
myviewmodel { (...) ienumerable<myclass> items {get; set;} } should ever care (be afraid) not passing evaluated values in code below?
myviewmodel { myclass[] items {get; set;} } sometimes lazy evaluation causes problems.
just make sure new concrete instance of ienumerable in view model constructor, , shouldn't have problems. list empty.
Comments
Post a Comment