J
Jeff
hi
asp.net 2.0
I have a class named Category in which I want to implement the
iHierarchyData interface:
**********************************
This is the original Category class:
public class Category
{
private int _id;
public int Id { get { return _id; } }
private string _name;
public string Name { get { return _name; } }
private int _parentid;
public int parent { get { return _parent; } }
public Category(int id, string name, int parent)
{
this.Id = id;
this.Name = name;
this.Parent = parent;
}
public static List<Category> GetCategories() {}
**************************************
the original class has a GetCategories method, my problem is that I don't
know where that method should fit in after the iHierarchyData interface is
implemented together with this class:
public class CategoryCollection : List<Category>, IHierarchicalEnumerable
I've studied this example without fully undestanding what I need to do:
http://www.codeproject.com/KB/custo...ise=3&sort=Position&view=Quick&select=2520602
that's why I post my question here in the hope of someone could guide me on
this problem
Jeff
asp.net 2.0
I have a class named Category in which I want to implement the
iHierarchyData interface:
**********************************
This is the original Category class:
public class Category
{
private int _id;
public int Id { get { return _id; } }
private string _name;
public string Name { get { return _name; } }
private int _parentid;
public int parent { get { return _parent; } }
public Category(int id, string name, int parent)
{
this.Id = id;
this.Name = name;
this.Parent = parent;
}
public static List<Category> GetCategories() {}
**************************************
the original class has a GetCategories method, my problem is that I don't
know where that method should fit in after the iHierarchyData interface is
implemented together with this class:
public class CategoryCollection : List<Category>, IHierarchicalEnumerable
I've studied this example without fully undestanding what I need to do:
http://www.codeproject.com/KB/custo...ise=3&sort=Position&view=Quick&select=2520602
that's why I post my question here in the hope of someone could guide me on
this problem
Jeff