CPUCardLib.ApduMsgHelper.InitSendMsgDic C# (CSharp) Method

InitSendMsgDic() private static method

private static InitSendMsgDic ( ) : void
return void
        private static void InitSendMsgDic() 
        {
           
             
            string[] allLines = DefindSendMsgCodeArray.Split('\n');

            for (int i = 0; i < allLines.Length; i++)
            {
                int index = allLines[i].IndexOf(' ');
                if (index > 1)
                {
                    string cmd = allLines[i].Substring(0, index).ToUpper();
                    string msg = allLines[i].Substring(index, allLines[i].Length - index);
                    if (!AllSendMsgDic.ContainsKey(cmd))
                    {
                        AllSendMsgDic.Add(cmd, msg);
                    }
                    else
                    {
                        Console.WriteLine();
                    }
                }
            }
        }