A4LGSharedFunctions.ConfigUtil.GetMoveConnectionsConfig C# (CSharp) Method

GetMoveConnectionsConfig() public static method

public static GetMoveConnectionsConfig ( ) : List
return List
        public static List<MoveConnectionsDetails> GetMoveConnectionsConfig()
        {
            XmlDocument xmld = getConfigAsXMLDoc();
            if (xmld == null) return null;
            XmlNodeList nodelist = default(XmlNodeList);
            XmlNode node = default(XmlNode);
            List<MoveConnectionsDetails> pEntries = null;
            MoveConnectionsDetails pSingleEntries = null;

            try
            {

                //Get the list of name nodes
                //nodelist = xmld.SelectNodes("LayerViewerConfig/Layers/Layer");
                nodelist = xmld.SelectNodes("configuration/MoveConnections/MoveConnectionsDetails");
                if (nodelist == null) { return null; }
                //Loop through the nodes
                pEntries = new List<MoveConnectionsDetails>();

                for (int i = 0; i < nodelist.Count; i++)
                {
                    node = nodelist.Item(i);

                    pSingleEntries = (MoveConnectionsDetails)Globals.DeserializeObject(node, typeof(MoveConnectionsDetails));
                    if (pSingleEntries != null)
                        pEntries.Add(pSingleEntries);

                }

                return pEntries;
            }
            catch// (Exception ex)
            {

                return null;

            }
            finally
            {

                xmld = null;
                nodelist = null;
                node = null;
                pSingleEntries = null;
            }
        }