How to Increase array memory space C# [duplicate] - c#

This question already has answers here:
change array size
(15 answers)
How to resize multidimensional (2D) array in C#?
(7 answers)
Closed 9 months ago.
I'm tying to create an method which accepts two parameter and rewrite them by increasing their memory space by one
public void expand(string[] array,double[,] data)
{
}

Related

Converting String from E notation to "million, billion, trillion, etc) [duplicate]

This question already has answers here:
Formatting a large number with commas
(4 answers)
Formatting Large Numbers with .NET
(5 answers)
Closed 1 year ago.
In my program it says the float value for how much currency the person has. Currently if its a huge number say 200,000,000, it displays it as "2E+08" When I would rather it display "200 Million" Any help would be appreciated

Generate Each number between 2 numbers [duplicate]

This question already has answers here:
How to create a sequence of integers in C#?
(9 answers)
Closed 2 years ago.
I am trying to figure out a way to generate each number between 2 other numbers. For example, if the first number is 7 and the last number is 12 I want to generate an array(?) of Int that would be Intarray {7,8,9,10,11,12}.
Is this possible?
Enumerable.Range(,) will be your friend.

Fast add huge HashSet<string> to ListBox [duplicate]

This question already has answers here:
Slow showing / drawing dialogue with ListBox?
(3 answers)
How to select all items in a ListBox really fast?
(5 answers)
Displaying a large number of strings in WinForms listbox/listview controls
(2 answers)
Closed 3 years ago.
Hellow! How can I add huge (~2000000 records) HashSet to ListBox? I have used foreach and inside listBox1.Add(...), but it is slow. I thinck that I'm to use AddRange(...), but I can't do that becouse I do not know how to convert HashSet to object[].
May be you know another way to fast load hashset to listbox?

What is a byte[][] in C#? [duplicate]

This question already has answers here:
Differences between a multidimensional array "[,]" and an array of arrays "[][]" in C#?
(12 answers)
Closed 4 years ago.
While coding a server, I came across something that I didn't recognize, which is byte[][].
What does this syntax mean, and how do I get rid of the message?
It's a Jagged Array in C#. To be short, it's an Array of Arrays holding bytes.

Allocate memory in C# [duplicate]

This question already has answers here:
C# memcpy equivalent
(7 answers)
memcpy function in c# [duplicate]
(6 answers)
Closed 8 years ago.
I want to convert the code from C++ to C#, there is one line code regarding with memcpy. Not sure how to convert it.
memcpy(Bucket, nBucket, 4 * L);
The original code is from TopCoderForums. I finished most of them except a few lines.
In that specific example of code (where Bucket and nBucket are int arrays) here is what you can do in c#:
Array.Copy(nBucket, Bucket, 4 * L)
(Note that I think souce and destination should be swapped around)

Categories