Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Is it possible to implement a threadsafe dictionary with minimal use of locks if the only methods I want are tryget and insert? Entries will never be deleted and value for a key will always stay the same.
Take a look at System.Collections.Concurrent. It contains ConcurrentDictionary<TKey, TValue> which probably does what you're after.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
Does this have any adverse effects on our CRUD operations?
Is there a significant difference if we don't use these attributes in our model?
Yes, there are a significant difference if you dont use the attributes.
See:
https://learn.microsoft.com/es-es/dotnet/framework/wcf/feature-details/using-data-contracts
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
How does Match 3 developers guarantee that there will always be a possible choice and avoid "No more moves" situations?
A lot of times, they just tend to add in a shuffle feature whenever there are no more moves.
Bejeweled is a good example where, in certain modes, the player only has a certain amount of shuffles, and will lose once there are no more moves or shuffles.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'm using XmlManager to
do xml manipulations in several methods in a class.where I should declare XmlManager variable ?
1.locally within each method and do intialization.
2 declare at globally and initiate at the method level
As it is, in this question, there's absolutely NO difference whatsoever because there's neither performance gain nor significant design issues.
Maybe if the question is put into context there could be reason to choose one approach over the other, but as it stands now. None of the approach is better than the other one
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I'm using Asp.net and C#, I need create and UNDO feature for a webspace.
I would like to know wich Collection is most appropriate.
Array, HashTable, Dictionary?
Since you would want to undo the commends in the reverse order of when they were performed a Stack<T> would suit your needs. You can then push the commands on the stack when you've performed them and pop them when you wish to undo
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Doez prism assign any unique identifier/guid maintained for each view ?
Perhaps in tracking any references etc?
Prism doesn't do it. But you can do it easily if needed. However, I learned that you don't need to do this if you properly use navigation and navigation parameters.