private void OnDeserialized(StreamingContext ctx)
 {
     // v2.0 and beyond XML case
     if (m_serializedPermission != null)
     {
         FromXml(SecurityElement.FromString(m_serializedPermission));
         m_serializedPermission = null;
     }
     else if (m_site != null) //v1.x case where we read the m_site value
     {
         m_unrestricted = false;
         m_sites        = new SiteString[1];
         m_sites[0]     = m_site;
         m_site         = null;
     }
 }
 private void OnDeserialized(StreamingContext ctx)
 {
     if ((ctx.State & ~(StreamingContextStates.Clone | StreamingContextStates.CrossAppDomain)) != 0)
     {
         // v2.0 and beyond XML case
         if (m_serializedPermission != null)
         {
             FromXml(SecurityElement.FromString(m_serializedPermission));
             m_serializedPermission = null;
         }
         else //v1.x case where we read the m_zone value
         {
             SecurityZone = m_zone;
             m_zone       = SecurityZone.NoZone;
         }
     }
 }