KeePass.Util.XmlSerialization.XmlSerializerEx.ReadIOCredProtMode C# (CSharp) Method

ReadIOCredProtMode() private static method

private static ReadIOCredProtMode ( XmlReader xr ) : KeePassLib.Serialization.IOCredProtMode
xr System.Xml.XmlReader
return KeePassLib.Serialization.IOCredProtMode
        private static KeePassLib.Serialization.IOCredProtMode ReadIOCredProtMode(XmlReader xr)
        {
            if(m_dictIOCredProtMode == null)
            {
                m_dictIOCredProtMode = new Dictionary<string, KeePassLib.Serialization.IOCredProtMode>();
                m_dictIOCredProtMode["None"] = KeePassLib.Serialization.IOCredProtMode.None;
                m_dictIOCredProtMode["Obf"] = KeePassLib.Serialization.IOCredProtMode.Obf;
            }

            string strValue = xr.ReadElementString();
            KeePassLib.Serialization.IOCredProtMode eResult;
            if(!m_dictIOCredProtMode.TryGetValue(strValue, out eResult))
                { Debug.Assert(false); }
            return eResult;
        }