Пример #1
0
 internal void FromXml( SecurityElement e )
 {
     SecurityElement elem;
     elem = e.SearchForChildByTag( "Key" );
     if (elem == null || elem.Text == null || elem.Text.Length == 0)
     {
         PublicKey = new byte[0];
     }
     else
     {
         try
         {
             PublicKey = Hex.DecodeHexString( elem.Text );
         }
         catch (Exception)
         {
             PublicKey = new byte[0];
         }
     }
 }
        internal void FromXml(SecurityElement e)
        {
            SecurityElement elem;

            elem = e.SearchForChildByTag("Key");
            if (elem == null || elem.Text == null || elem.Text.Length == 0)
            {
                PublicKey = new byte[0];
            }
            else
            {
                try
                {
                    PublicKey = Hex.DecodeHexString(elem.Text);
                }
                catch (Exception)
                {
                    PublicKey = new byte[0];
                }
            }
        }