Click here to Skip to main content
15,908,264 members
Home / Discussions / C#
   

C#

 
GeneralRe: directX in C# Pin
Chen Pang22-Feb-04 22:07
Chen Pang22-Feb-04 22:07 
Generallisting bitmap on ListView Pin
azusakt22-Feb-04 19:01
azusakt22-Feb-04 19:01 
GeneralRe: listing bitmap on ListView Pin
Werdna23-Feb-04 4:14
Werdna23-Feb-04 4:14 
QuestionHow to change Size of Array Pin
god4k22-Feb-04 18:23
god4k22-Feb-04 18:23 
AnswerRe: How to change Size of Array Pin
Tom Larsen22-Feb-04 18:28
Tom Larsen22-Feb-04 18:28 
AnswerRe: How to change Size of Array Pin
Corinna John22-Feb-04 20:28
Corinna John22-Feb-04 20:28 
GeneralRe: How to change Size of Array Pin
CWIZO23-Feb-04 2:54
CWIZO23-Feb-04 2:54 
AnswerRe: How to change Size of Array Pin
turbochimp25-Feb-04 11:21
turbochimp25-Feb-04 11:21 
The answer is, you cannot change the size of an initialized array.

The amount of storage space designated at initialization time is not changeable without destroying the original Array object. For example, the String type (basically a Char[]) is considered immutable; that is, you cannot truly change a String variable, you can only destroy it and assign a new value to the same variable name (that's why StringBuilder is such an efficiency improvement over string concatenation...under the covers it uses a collection type that's sizable until you ask for the ToString() representation).

That said, I saw someone posted a method to copy one Array into another (presumably larger) Array, and someone else has suggested the ArrayList class. There are numerous other classes available (StringCollection to name one), or you can make your own. A good place to start is CollectionBase or DictionaryBase, depending on whether you want straight values or key-value pairs.

Hope this helps.
QuestionSocketPermission usage? Pin
Dilys22-Feb-04 16:58
Dilys22-Feb-04 16:58 
GeneralOne question about drawing rectangles. Pin
weihua99@263.net22-Feb-04 13:58
weihua99@263.net22-Feb-04 13:58 
GeneralRe: One question about drawing rectangles. Pin
Corinna John22-Feb-04 20:43
Corinna John22-Feb-04 20:43 
GeneralMonitoring Activation Count Pin
kimsangwoo22-Feb-04 13:50
kimsangwoo22-Feb-04 13:50 
Questionhow to find out how much graphics card memory and how much RAM I have? Pin
SIDDHARTH_JAIN22-Feb-04 10:01
SIDDHARTH_JAIN22-Feb-04 10:01 
AnswerRe: how to find out how much graphics card memory and how much RAM I have? Pin
Mazdak22-Feb-04 11:19
Mazdak22-Feb-04 11:19 
GeneralListView with Windows Control Library Pin
Snowjim22-Feb-04 6:51
Snowjim22-Feb-04 6:51 
GeneralWorking with pixels and palette Pin
Stephane David22-Feb-04 5:24
Stephane David22-Feb-04 5:24 
GeneralRe: Working with pixels and palette Pin
Heath Stewart23-Feb-04 9:29
protectorHeath Stewart23-Feb-04 9:29 
GeneralRe: Working with pixels and palette Pin
Stephane David23-Feb-04 19:48
Stephane David23-Feb-04 19:48 
GeneralRe: Working with pixels and palette Pin
Stephane David23-Feb-04 21:55
Stephane David23-Feb-04 21:55 
GeneralRe: Working with pixels and palette Pin
Heath Stewart24-Feb-04 3:03
protectorHeath Stewart24-Feb-04 3:03 
GeneralRe: Working with pixels and palette Pin
Stephane David24-Feb-04 3:40
Stephane David24-Feb-04 3:40 
GeneralEject DVD-drive Pin
Stefan Troschuetz22-Feb-04 4:53
Stefan Troschuetz22-Feb-04 4:53 
GeneralRe: Eject DVD-drive Pin
Mazdak22-Feb-04 5:03
Mazdak22-Feb-04 5:03 
General[COM]DrCOM-Monitor Tool and more?[COM] Pin
kenokabe22-Feb-04 3:17
kenokabe22-Feb-04 3:17 
GeneralRe: [COM]DrCOM-Monitor Tool and more?[COM] Pin
Mazdak22-Feb-04 4:11
Mazdak22-Feb-04 4:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.