Battle_Script_Pro.Form1.ParseHeaderFileToDecompileDictionaries C# (CSharp) Method

ParseHeaderFileToDecompileDictionaries() private method

private ParseHeaderFileToDecompileDictionaries ( string rbhFile, string>.Dictionary tempDict, string>.Dictionary tempDict2, string>.Dictionary tempDict3 ) : void
rbhFile string
tempDict string>.Dictionary
tempDict2 string>.Dictionary
tempDict3 string>.Dictionary
return void
        private void ParseHeaderFileToDecompileDictionaries(string[] rbhFile, Dictionary<uint, string> tempDict, Dictionary<uint, string> tempDict2, Dictionary<uint, string> tempDict3)
        {
            foreach (string s in rbhFile)
            {
                if (s.StartsWith("#define"))
                {
                    int temp = 0;
                    string[] rbhLine = s.Split(' ');
                    bool success = Int32.TryParse(rbhLine[2], out temp);
                    if (success)
                    {
                        try
                        {
                            if (rbhLine[1].ToUpper().Contains("TYPE"))
                            {
                                tempDict2.Add(UInt32.Parse(rbhLine[2]), rbhLine[1].ToUpper());
                            }
                            else if (rbhLine[1].ToUpper().Contains("BANK"))
                            {
                                tempDict3.Add(UInt32.Parse(rbhLine[2]), rbhLine[1].ToUpper());
                            }
                            else
                            {
                                tempDict.Add(UInt32.Parse(rbhLine[2]), rbhLine[1].ToUpper());
                            }
                        }
                        catch
                        {
                        }
                    }
                    else
                    {
                        try
                        {
                            if (rbhLine[1].ToUpper().Contains("TYPE"))
                            {
                                tempDict2.Add(UInt32.Parse(ToDecimal(rbhLine[2])), rbhLine[1].ToUpper());
                            }
                            else if (rbhLine[1].ToUpper().Contains("BANK"))
                            {
                                tempDict3.Add(UInt32.Parse(ToDecimal(rbhLine[2])), rbhLine[1].ToUpper());
                            }
                            else
                            {
                                tempDict.Add(UInt32.Parse(ToDecimal(rbhLine[2])), rbhLine[1].ToUpper());
                            }
                        }
                        catch
                        {
                        }
                    }
                }
            }
        }

Same methods

Form1::ParseHeaderFileToDecompileDictionaries ( string rbhFile, string>.Dictionary tempDict ) : void
Form1