Imported Upstream version 4.0.0~alpha1

Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
This commit is contained in:
Jo Shields
2015-04-07 09:35:12 +01:00
parent 283343f570
commit 3c1f479b9d
22469 changed files with 2931443 additions and 869343 deletions

View File

@@ -19,9 +19,6 @@ using System.Security.Policy;
using System.Text;
using Mono.Security.Cryptography;
#if !NET_2_0
using Mono.Xml;
#endif
[assembly: AssemblyTitle ("Mono CasPol")]
[assembly: AssemblyDescription ("Command line tool to modify Code Access Security policies.")]
@@ -141,16 +138,10 @@ namespace Mono.Tools {
xml = sr.ReadToEnd ();
sr.Close ();
}
#if NET_2_0
// actually this use the SecurityParser (on the Mono
// runtime) in corlib do to the job - but it remove
// the dependency on Mono.Security.dll
SecurityElement se = SecurityElement.FromString (xml);
#else
SecurityParser sp = new SecurityParser ();
sp.LoadXml (xml);
SecurityElement se = sp.ToXml ();
#endif
return se;
}