0

if i define a array, for example private int[] lendMoney = new int[10]; do i can use a use property to match this private array? thank you

3
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by Rashakil Fol
0

of course, the same as you would any other property

public int[] LendMoney
{
get{return lendMoney;}
set{lendMoney = value;}
}

Might want to use an arraylist instead, if its not a fixed length

0

Might want to use an arraylist instead, if its not a fixed length

No, you'd want to use a List<int> . If you wanted it to be variable length. Which for most people in most situations is wrong.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.