A4LGSharedFunctions.ConfigUtil.GetLayerViewerConfig C# (CSharp) Method

GetLayerViewerConfig() public static method

public static GetLayerViewerConfig ( ) : A4LGSharedFunctions.LayerViewerConfig
return A4LGSharedFunctions.LayerViewerConfig
        public static LayerViewerConfig GetLayerViewerConfig()
        {
            XmlDocument xmld = getConfigAsXMLDoc();
            if (xmld == null) return null;
            //XmlNodeList nodelist = default(XmlNodeList);
            XmlNode node = default(XmlNode);

            try
            {

                node = xmld.SelectSingleNode("configuration/LayerViewerConfig");
                if (node == null) { return null; }

                LayerViewerConfig pSingleEntries;
                pSingleEntries = (LayerViewerConfig)Globals.DeserializeObject(node, typeof(LayerViewerConfig));

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

                return null;
            }
            finally
            {
                xmld = null;
                //  nodelist = null;
                node = null;

            }
        }