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 1 year ago.
Improve this question
So I am making an inventory system and I have a choice to make inventory through lists and arrays. Which approach is better and why in C#? This inventory system is for a 2d Platformer in unity.
In .Net, a list is a wrap of an array. It has similar performance, but List has built-in methods to resize the array, which contains all entries of the list. If your arrays are never resized, not need to use List.
Related
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
Is a List in C# equal to that of an ArrayList in terms of time complexity?
As it is my understanding that they're both similar in how they function, being dynamic arrays?
Both ArrayList and List<T> have the same basic implementation, using an array to store the items, reallocating as necessary when items are added. Indeed, much of List<T> is simply copy/paste from ArrayList, with appropriate changes to support the generics.
While there may be small differences in actual performance, the "big-O" complexity of operations in each would be the same.
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 8 years ago.
Improve this question
Is there a way to read live game stats such as current health, mana and etc? Something like what this guy did.
http://www.youtube.com/watch?v=-UWVuvDyk6Q
Yes.
https://developer.riotgames.com
Here's a library that wraps the API:
https://github.com/XeeX/LeagueOfLegendsAPI
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 9 years ago.
Improve this question
I want to make an RPG and want to know if i should use Xna or Monogame to code it. What would have a better result or easier code. I've researched a bit but still cant decide.
Since Monogame is the open source version of XNA ...
In terms of API calls / code you would have to write to do something they are basically the same and were designed to be.
That's like asking ... "should I drive a blue car or a red car?" it makes no difference since both will get you from A to B.
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 9 years ago.
Improve this question
There are two ways to create a form in c# application:
Add a new class describing form elements and behavior
Generate it all dynamically.
Q : What are the advantages of the second method?
Which can give more performance or reduce memory using and how about scalability?
Static UI should be your first choice. Dynamic UI is an option to consider, but only if you have a compelling reason. If you don't have a concrete reason to look for dynamic UI, and just have a vague feeling that one might be better then the other, then stick to static UI.
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 want to compare two strings on percentage basis
like i have this
Player and wmplayer
Manager and IDMan
Mail and WINMail
Explorer and iexplorer
Any Help Please
You can probably make use of a library such as ScoreSharp. It is designed to do fuzzy matching to find similarities between strings.