S
SQACSharp
Hi!!
Here is two classed :
public class ClassA
{
private Color _color;
private string _description;
public Color color
{
get { return this._color; }
set { this._color = value; }
}
public string description;
{
get { return this._description; }
set { this._description = value; }
}
public ClassA(Color clr, string desc)
{
if (clr != null)
_color = clr;
if (desc!=null)
_description=desc;
}
}
public class ClassB
{
private int _anumber;
public int anumber
{
get { return this._anumber;}
set { this._anumber = value; }
}
public ClassB(int numb)
{
if (numb) != null)
_anumber = numb;
}
}
I want to include ClassB in ClassA to have all the element in ClassA
all the elements in a single class like this :
ClassA.color,ClassA.description and ClassA.anumber
Is there any way to do this?
It's for using later in a generic List<MySuperClass>
any ideas? Thanks
Here is two classed :
public class ClassA
{
private Color _color;
private string _description;
public Color color
{
get { return this._color; }
set { this._color = value; }
}
public string description;
{
get { return this._description; }
set { this._description = value; }
}
public ClassA(Color clr, string desc)
{
if (clr != null)
_color = clr;
if (desc!=null)
_description=desc;
}
}
public class ClassB
{
private int _anumber;
public int anumber
{
get { return this._anumber;}
set { this._anumber = value; }
}
public ClassB(int numb)
{
if (numb) != null)
_anumber = numb;
}
}
I want to include ClassB in ClassA to have all the element in ClassA
all the elements in a single class like this :
ClassA.color,ClassA.description and ClassA.anumber
Is there any way to do this?
It's for using later in a generic List<MySuperClass>
any ideas? Thanks