Anyone see anything like this? don't read into the code, this is only a simple test to see the implementation working. It is going to be more than a Dictionary object with one key and a List of values. In the end it will be a Multi-keyed dictionary object.
Master.master.cs snippet
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
MyTestControl = new MyControl();
MyTestControl.AddGroup();
}
MyControl.cs snippet
public class MyControl : WebControl
{
private Dictionary
public enum dKey
{
Group,
User
}
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
_myDict[dKey.Group] = new List
}
public void AddGroup()
{
Group grp = new Group("test", "test");
_myDict[dKey.Group].Add(grp);
}
}
No comments:
Post a Comment