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;
}