G
Guest
I'm using visual studio to create a web application, but I'm having trouble
using a few classes that I've defined:
public class tank
{
public tank()
{
}
public float depth;
public float maxMudLvl;
public int agitatorQty;
public int impellerQty;
public float mudVolume;
public float turnoverRatio;
public float GPM;
}
public class roundTank : tank
{
public roundTank()
{
}
public float diameter;
}
public class squareTank : tank
{
public squareTank()
{
}
public float length;
public float width;
}
I tried putting them within the application namespace, but that didn't work.
Then I tried putting them in a class file, and that still didn't work. The
intellitype seems to work when I declare a new instance of the class, but
when I try to access the members, it doesn't.
I've searched and flipped many pages, but I can't find anything that says
simply: here's where you define classes or global variables in an ASP.NET
visual studio project.
Someone please forgive my ignorance and let me know. Thanks.
using a few classes that I've defined:
public class tank
{
public tank()
{
}
public float depth;
public float maxMudLvl;
public int agitatorQty;
public int impellerQty;
public float mudVolume;
public float turnoverRatio;
public float GPM;
}
public class roundTank : tank
{
public roundTank()
{
}
public float diameter;
}
public class squareTank : tank
{
public squareTank()
{
}
public float length;
public float width;
}
I tried putting them within the application namespace, but that didn't work.
Then I tried putting them in a class file, and that still didn't work. The
intellitype seems to work when I declare a new instance of the class, but
when I try to access the members, it doesn't.
I've searched and flipped many pages, but I can't find anything that says
simply: here's where you define classes or global variables in an ASP.NET
visual studio project.
Someone please forgive my ignorance and let me know. Thanks.