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

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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.