nesamani
February 14th, 2008, 06:06 AM
hi..
class Class1
{
private int id;
private string name;
private string address;
private string degree;
private string dept;
private bool val;
public StudentMark sm = new StudentMark();
[CategoryAttribute("General")]
public int ID
{
set { id = value; }
get { return id; }
}
[CategoryAttribute("General")]
public string Name
{
set { name = value; }
get { return name; }
}
[CategoryAttribute("General1")]
public string Address
{
set { address = value; }
get { return address; }
}
[CategoryAttribute("Education")]
public string Degree
{
set { degree = value; }
get { return degree; }
}
[CategoryAttribute("Education")]
public string Dept
{
set { dept = value; }
get { return dept; }
}
[CategoryAttribute("Education")]
public bool Val
{
set { val = value; }
get { return val; }
}
[CategoryAttribute("General")]
[TypeConverter(typeof(Ex))]
public StudentMark St
{
get { return sm; }
}
}
i created class like this..i can get the properties value using reflection..
but not able get this property value
[CategoryAttribute("General")]
[TypeConverter(typeof(Ex))]
public StudentMark St
{
get { return sm; }
}
class Class1
{
private int id;
private string name;
private string address;
private string degree;
private string dept;
private bool val;
public StudentMark sm = new StudentMark();
[CategoryAttribute("General")]
public int ID
{
set { id = value; }
get { return id; }
}
[CategoryAttribute("General")]
public string Name
{
set { name = value; }
get { return name; }
}
[CategoryAttribute("General1")]
public string Address
{
set { address = value; }
get { return address; }
}
[CategoryAttribute("Education")]
public string Degree
{
set { degree = value; }
get { return degree; }
}
[CategoryAttribute("Education")]
public string Dept
{
set { dept = value; }
get { return dept; }
}
[CategoryAttribute("Education")]
public bool Val
{
set { val = value; }
get { return val; }
}
[CategoryAttribute("General")]
[TypeConverter(typeof(Ex))]
public StudentMark St
{
get { return sm; }
}
}
i created class like this..i can get the properties value using reflection..
but not able get this property value
[CategoryAttribute("General")]
[TypeConverter(typeof(Ex))]
public StudentMark St
{
get { return sm; }
}