Beispiel #1
0
        public Dictionary <string, string> ReadDocumentation(string fileName)
        {
            stackVariable0 = new XmlReaderSettings();
            stackVariable0.set_IgnoreComments(true);
            stackVariable0.set_IgnoreWhitespace(true);
            stackVariable0.set_CloseInput(true);
            if (!File.Exists(fileName))
            {
                return(new Dictionary <string, string>());
            }
            V_0 = new FileStream(fileName, 3, 1, 5);
            try
            {
                V_1 = new Dictionary <string, string>();
                V_2 = new XmlTextReader(V_0, 1, null);
                try
                {
                    try
                    {
                        while (V_2.Read())
                        {
                            if (V_2.get_NodeType() != 1 || !String.op_Equality(V_2.get_Name(), "member"))
                            {
                                continue;
                            }
                            V_3 = V_2.GetAttribute("name");
                            V_1.set_Item(V_3, this.RemoveLeadingLineWhitespaces(V_2.ReadInnerXml()));
                        }
                    }
                    catch (XmlException exception_0)
                    {
                        dummyVar0 = exception_0;
                        V_5       = new Dictionary <string, string>();
                        goto Label0;
                    }
                }
                finally
                {
                    if (V_2 != null)
                    {
                        ((IDisposable)V_2).Dispose();
                    }
                }
                V_5 = V_1;
            }
            finally
            {
                if (V_0 != null)
                {
                    ((IDisposable)V_0).Dispose();
                }
            }
Label0:
            return(V_5);
        }