| |

VerySource

 Forgot password?
 Register
Search
View: 841|Reply: 6

What are the variables in c # that can hold 1M strings? Thank you

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-7 01:20:01
| Show all posts |Read mode
Thank you, thank you
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-7 07:33:01
| Show all posts
Use byte [] type, which is large and easy to convert
Reply

Use magic Report

0

Threads

8

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-1-7 09:21:01
| Show all posts
String works ... what do you want to do?
Reply

Use magic Report

0

Threads

8

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-1-7 09:36:01
| Show all posts
StringBuilder class
Can store up to int32
Reply

Use magic Report

1

Threads

6

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-7 10:18:02
| Show all posts
byte [] b = new byte [????]; write as much as you want.
Reply

Use magic Report

0

Threads

56

Posts

21.00

Credits

Newbie

Rank: 1

Credits
21.00

 China

Post time: 2020-1-7 12:54:01
| Show all posts
string
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-10 15:09:01
| Show all posts
System.Text.StringBuilder is more efficient

On specific occasions, nothing is the best.
Only suitable in specific situations
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list