« first day (3164 days earlier)      last day (1767 days later) » 

5:00 AM
Hi
how to delete an instance?
 
5:15 AM
I made a game with fighting against monsters. If the health points is <= 0 the monster should disappear.
How to remove the monster?
 
 
2 hours later…
7:36 AM
you could implement idisposable
or simply take it out of whatever list or other data structure you're keeping it in
 
7:54 AM
Yes I solved this with using an object list
 
 
6 hours later…
1:39 PM
hashset might be more appropriate than a list
 
2:22 PM
okay. But mainly because of performance reasons, right?
 
2:56 PM
Dunno, this points to better performance dotnetcurry.com/csharp/1362/hashset-csharp-with-examples
 
@kame Also semantic reasons.
 
@KendallFrey yes
 
 
3 hours later…
5:49 PM
Hi, how would i apply a filter to my ICollectionView used on a ObservableCollection when the filter has to be a IEnumerable?
 
 
3 hours later…
mr5
8:27 PM
@hypestar ObservableCollection inherits IEnumerable
 
 
1 hour later…
9:53 PM
Howdy, anyone on today
?
 
10:49 PM
mainly because of performance reasons,
secondly for safety issues
hashsets allow you to do a lookup based on the object in O(1) time
so, if you say "remove that particular entity from this collection" then a hashset is probably fastest
other than that, hashsets require the elements to be unique, so you can never insert the same item twice and suddenly have 2 of the same thing
(which is a bit of a safety net for you)
 
11:31 PM
hi guys, please i need help getting answers for the following question: stackoverflow.com/questions/56584027/…
 

« first day (3164 days earlier)      last day (1767 days later) »