Exemplo n.º 1
0
        private void initListMethods()
        {
            Dictionary <string, Delegate> tmpDic = new Dictionary <string, Delegate>();

            Func <string> getNodeName = () => "users/user";

            tmpDic.Add("NodeName", getNodeName);
            tmpDic.Add("set", new Action <XmlNodeList>(AddUsersFromXmlNodeList));
            tmpDic.Add("get", new Func <XmlNodeList>(GetUsersAsXmlNodeList));
            tmpDic.Add("setFromList", new Action <List <User>, bool>(AddUsersFromList));
            tmpDic.Add("getAsList", new Func <List <User> >(GetUsersAsList));

            ListMethods.Add(tmpDic);
        }