Apache.NMS.Test.PrimitiveMapTest.CreateDictionary C# (CSharp) Method

CreateDictionary() protected static method

protected static CreateDictionary ( ) : IDictionary
return IDictionary
        protected static IDictionary CreateDictionary()
        {
            Hashtable answer = new Hashtable();
            answer.Add("Name", "James");
            answer.Add("Location", "London");
            answer.Add("Company", "LogicBlaze");

            Hashtable childMap = new Hashtable();
            childMap.Add("name", "childMap");
            answer.Add("childMap", childMap);

            ArrayList childList = new ArrayList();
            childList.Add("childListElement1");
            answer.Add("childList", childList);
            return answer;
        }