FromXml() публичный Метод

public FromXml ( SecurityElement esd ) : void
esd SecurityElement
Результат void
Пример #1
0
		public void FromXmlWrongVersion () 
		{
			ReflectionPermission p = new ReflectionPermission (PermissionState.None);
			SecurityElement se = p.ToXml ();
			// can't modify - so we create our own
			SecurityElement se2 = new SecurityElement (se.Tag, se.Text);
			se2.AddAttribute ("class", se.Attribute ("class"));
			se2.AddAttribute ("version", "2");
			p.FromXml (se2);
		}
Пример #2
0
		public void FromXmlNull () 
		{
			ReflectionPermission p = new ReflectionPermission (PermissionState.None);
			p.FromXml (null);
		}