public void FromXml (SecurityElement el)
{
if (el == null)
throw new ArgumentNullException ("el");
if (el.Tag != tagName) {
string msg = String.Format ("Invalid tag {0} expected {1}", el.Tag, tagName);
throw new ArgumentException (msg, "el");
}
_list.Clear ();
if (el.Children != null) {
foreach (SecurityElement child in el.Children) {
PermissionSet ps = new PermissionSet (PermissionState.None);
ps.FromXml (child);
_list.Add (ps);
}
}
}