I am creating a simple form. I have created two simple classes, Question and QuestionSection. I then create some subclasses of question, e.g. SimpleQuestion, MultipleChoiceQuestion, with different be
I\'m learning PHP5 (last time I checked PHP was in PHP4 days) and I\'m glad to see that PHP5 OO is more Java-alike than the PHP4 one but there\'s still an issue that makes me feel quite unconfortable
normally with a hashtable I do: if开发者_高级运维(!myHash.Contains(someId)) { // insert to hash } If I have a List, how can I check using contains?
I am trying to map a domain model in NHibernate开发者_StackOverflow社区. The domain model is implemented with what I think is DDD style. The mapping works mostly but then when I try to use a collectio
I have a list element which is populated via a query, this is then run through a for loop which sends this list to the front end, a jsp and prints them.
I\'m having a bit of an issue with Nhibernate / Fluent NHibern开发者_如何学运维ate I have a class that has a collection and a backing field, and methods for manipulating the collection like so:
Let\'s say I want to create a collection class that is thread-safe by default. Internally, the class has a protected List<T> property called Values.
I\'ve created many Geodata objects (name,postalCode,lat,lon). Now 开发者_JAVA技巧I want to put them into a collection to search for different entries later.
I\'m familiar with the problem of modifying a collection while looping over it with a foreach loop (i.e. \"System.InvalidOperationException: Collection was modified\").However, it doesn\'t make sense
I was using SortedList() in a class which stores about 15-100K data. Recently my requirements changed, data should not be stored as sorted any more so I switched to List().