Hi DAMAR,
Morten's solutions is easy, and it works with
simplest possible way.
Remember, that *MyProperty* property will return
and set only a "reference" to table of *int*.
e.g.:
int[] intTable=myObj.MyProperty;
intTable[2]=13;
// myObj.MyProperty[2]==13
So if you want to keep table *MyProperty* as
an independent table of int's then you should
extend *get;set* code with Array.Copy(ing).
HTH
Marcin
Yeah thanks.
I would not suppose its so easy.
I tried with indexers, but your solution is simpler
:
Hi Damar,
Do you mean something like this?
public int[] MyProperty
{
get
{
return var1;
}
set
{
var1 = value;
}
}
On Mon, 10 Jan 2005 02:29:01 -0800, DAMAR
Hello
got such proble (easy I think

)
i declare variable:
private int[] var1 = new int[10];
how to write property for this variable?