Hi,
how do I define a property in my class? For simple datatypes I know what I have to do. But in my class I have an ArrayList and I want to put that in a property like Nodes from TreeView. Can someone give me a hint?
Printable View
Hi,
how do I define a property in my class? For simple datatypes I know what I have to do. But in my class I have an ArrayList and I want to put that in a property like Nodes from TreeView. Can someone give me a hint?
Hi,
you can define properties like this:
private ArrayList myArr ;
public MyArrayList
{
get
{
return myArr ;
}
set
{
myArr = value ;
}
}