Property is something like attribute.....
a property can be reference type or value type...
reference type = any class like "String","DateTime","SqlConnection"..
what we use "new" keyword to initialize....
and
value type = any type like..."string","int","float","double"........
now if you want a Parent Property and Child Properties......
Use this....
first making the reference type ......
public class RainbowClass
{
bool red,blue,green;
public RainbowClass()
{
red=false;
blue=false;
green=false;
}
public bool Red
{
get
{
return red;
}
set
{
red=value;
}
}
public bool Blue
{
get
{
return blue;
}
set
{
blue=value;
}
}
public bool Green
{
get
{
return green;
}
set
{
green=value;
}
}
}
now in your user control....make a property like this...
RainbowClass rainbowObject;
public RainbowClass Rainbow
{
get
{
return rainbowObject;
}
set
{
rainbowObject=value;
}
}
may be i misunderstood your question and i may have posted irrelevant answer.... plz dont mind if it is like that