J
J-T
Is there a problem of defining a category object like below. I am just
trying to create a proof-of-concept sort of application (and I don't want to
use database) , so I have to sort of hard code the data.
public class Category
{
private static SortedList m_CategoryCollection;
public static SortedList CategoryCollection
{
get
{
m_CategoryCollection = new SortedList();
m_CategoryCollection.Add("Foods",0);
m_CategoryCollection.Add("Books",0);
m_CategoryCollection.Add("Medcine",0);
m_CategoryCollection.Add("others",0.01);
return (m_CategoryCollection);
}
}
}
Thanks in advance
trying to create a proof-of-concept sort of application (and I don't want to
use database) , so I have to sort of hard code the data.
public class Category
{
private static SortedList m_CategoryCollection;
public static SortedList CategoryCollection
{
get
{
m_CategoryCollection = new SortedList();
m_CategoryCollection.Add("Foods",0);
m_CategoryCollection.Add("Books",0);
m_CategoryCollection.Add("Medcine",0);
m_CategoryCollection.Add("others",0.01);
return (m_CategoryCollection);
}
}
}
Thanks in advance