Merge pull request #3142 from henricm/fix-for-win-mono_string_to_utf8
[mono.git] / mcs / class / corlib / System.Security.Policy / PolicyLevel.cs
index a124af3d3202dd0570c0450508911b6b2d8313ac..4e1427fe1be2a49be2faae58fd83ec535b308ca3 100644 (file)
@@ -31,8 +31,6 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if !MOONLIGHT
-
 using System.Collections; // for IList
 using System.Globalization;
 using System.IO;
@@ -584,7 +582,7 @@ namespace System.Security.Policy {
 
                internal bool IsFullTrustAssembly (Assembly a)
                {
-                       AssemblyName an = a.UnprotectedGetName ();
+                       AssemblyName an = a.GetName ();
                        StrongNamePublicKeyBlob snpkb = new StrongNamePublicKeyBlob (an.GetPublicKey ());
                        StrongNameMembershipCondition snMC = new StrongNameMembershipCondition (snpkb, an.Name, an.Version);
                        foreach (StrongNameMembershipCondition sn in full_trust_assemblies) {
@@ -596,6 +594,3 @@ namespace System.Security.Policy {
                }
         }
 }
-
-#endif
-