LongThe data type is 8 bytes each. For stringit is more difficult. Check out this post by the famous John Skeet.
Quote:
In the current implementation, at least the strings occupy 20+ (n / 2) * 4 bytes (rounding the n / 2 value down)
(Note: in his blog post, he has some updates in this string calculation)
Given your case, each of your 5 characters stringwill cover:
20 + (5/2) * 4 = 20 + 8 = 28 bytes
, , - Long, , string, string (5 ).
, 1 Long, 8 , Long. + , 8 (935,984,413 x 8 = 7,487,875,304).
string, :
28 * 3,125,000 = 87.5 MB
, 7,5 ~ 7,6 string Long()