Click here to Skip to main content
15,889,096 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi all,


i have a string array which size i want to change dynamically use in a variable which is private member of the class.But i could not find variable name when i'm try to set inside the () of an array. can anyone tell me reason behind the hiding of the variable?. please reply with an example
Posted
Comments
Toli Cuturicu 4-Mar-11 9:49am    
Non-sense.

this[^] might give you an idea.
 
Share this answer
 
I don't really understand your question. If you declare a field private you can't access it outside your class.

If you want an array with a size that can change dynamically, you should use a ArrayList.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900