Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/corlib/System.Reflection/Assembly.cs')
-rw-r--r--mcs/class/corlib/System.Reflection/Assembly.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/mcs/class/corlib/System.Reflection/Assembly.cs b/mcs/class/corlib/System.Reflection/Assembly.cs
index d6dc774bd5e..cb241a662b4 100644
--- a/mcs/class/corlib/System.Reflection/Assembly.cs
+++ b/mcs/class/corlib/System.Reflection/Assembly.cs
@@ -159,6 +159,9 @@ namespace System.Reflection {
// note: the security runtime requires evidences but may be unable to do so...
internal Evidence UnprotectedGetEvidence ()
{
+#if MOBILE
+ return null;
+#else
// if the host (runtime) hasn't provided it's own evidence...
if (_evidence == null) {
// ... we will provide our own
@@ -167,6 +170,7 @@ namespace System.Reflection {
}
}
return _evidence;
+#endif
}
[MethodImplAttribute (MethodImplOptions.InternalCall)]
@@ -797,7 +801,7 @@ namespace System.Reflection {
return other._mono_assembly == _mono_assembly;
}
-#if !MOONLIGHT
+#if !NET_2_1
// Code Access Security
internal void Resolve ()