using System.Security.Principal;
using System.Configuration.Assemblies;
+#if NET_2_0
+using System.Runtime.ConstrainedExecution;
+#endif
+
namespace System
{
[ClassInterface(ClassInterfaceType.None)]
}
[SecurityPermission (SecurityAction.Demand, ControlAppDomain = true)]
+#if NET_2_0
+ [ReliabilityContractAttribute (Consistency.MayCorruptAppDomain, Cer.MayFail)]
+#endif
public static void Unload (AppDomain domain)
{
if (domain == null)
}
public int Id {
+#if NET_2_0
+ [ReliabilityContractAttribute (Consistency.WillNotCorruptState, Cer.Success)]
+#endif
get { return getDomainID (); }
}
[MethodImplAttribute (MethodImplOptions.InternalCall)]
public extern static void WaitForPendingFinalizers ();
-
+
+ [ReliabilityContractAttribute (Consistency.WillNotCorruptState, Cer.Success)]
+ [MonoTODO]
+ public static int CollectionCount (int generation) {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public static void AddMemoryPressure (long bytesAllocated) {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public static void RemoveMemoryPressure (long bytesAllocated) {
+ throw new NotImplementedException ();
+ }
+
}
}
}
public static int Size {
+#if NET_2_0
+ [ReliabilityContractAttribute (Consistency.WillNotCorruptState, Cer.Success)]
+#endif
get {
return sizeof (void *);
}
}
[CLSCompliant (false)]
+#if NET_2_0
+ [ReliabilityContractAttribute (Consistency.WillNotCorruptState, Cer.Success)]
+#endif
unsafe public void *ToPointer ()
{
return value;
public extern static double Pow (double x, double y);
[MethodImplAttribute (MethodImplOptions.InternalCall)]
+#if NET_2_0
+ [ReliabilityContractAttribute (Consistency.WillNotCorruptState, Cer.Success)]
+#endif
public extern static double Sqrt (double x);
}
}
#if NET_2_0
+using System.Runtime.ConstrainedExecution;
+
namespace System
{
[CLSCompliant (false)]
return ResolveTypeHandle (typeToken);
}
+#if NET_2_0
+ [ReliabilityContractAttribute (Consistency.WillNotCorruptState, Cer.Success)]
+#endif
public override bool Equals (object obj)
{
if (obj == null || GetType () != obj.GetType ())
return value == ((ModuleHandle)obj).Value;
}
+#if NET_2_0
+ [ReliabilityContractAttribute (Consistency.WillNotCorruptState, Cer.Success)]
+#endif
public bool Equals (ModuleHandle handle)
{
return value == handle.Value;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
+#if NET_2_0
+using System.Runtime.ConstrainedExecution;
+#endif
+
namespace System {
[Serializable]
// <summary>
// Object destructor.
// </summary>
+#if NET_2_0
+ [ReliabilityContractAttribute (Consistency.WillNotCorruptState, Cer.Success)]
+#endif
~Object ()
{
}
// Tests whether a is equal to b.
// Can not figure out why this even exists
// </summary>
+#if NET_2_0
+ [ReliabilityContractAttribute (Consistency.WillNotCorruptState, Cer.Success)]
+#endif
public static bool ReferenceEquals (object a, object b)
{
return (a == b);
using System.Reflection;
using System.Runtime.Serialization;
+#if NET_2_0
+using System.Runtime.ConstrainedExecution;
+#endif
+
namespace System
{
[MonoTODO ("Serialization needs tests")]
info.AddValue ("FieldObj", (MonoField) FieldInfo.GetFieldFromHandle (this), typeof (MonoField));
}
-
+#if NET_2_0
+ [ReliabilityContractAttribute (Consistency.WillNotCorruptState, Cer.Success)]
+#endif
public override bool Equals (object obj)
{
if (obj == null || GetType () != obj.GetType ())
return value == ((RuntimeFieldHandle)obj).Value;
}
+#if NET_2_0
+ [ReliabilityContractAttribute (Consistency.WillNotCorruptState, Cer.Success)]
+#endif
public bool Equals (RuntimeFieldHandle handle)
{
return value == handle.Value;
using System.Runtime.CompilerServices;
using System.Security.Permissions;
+#if NET_2_0
+using System.Runtime.ConstrainedExecution;
+#endif
+
namespace System
{
[MonoTODO ("Serialization needs tests")]
return GetFunctionPointer (value);
}
+#if NET_2_0
+ [ReliabilityContractAttribute (Consistency.WillNotCorruptState, Cer.Success)]
+#endif
public override bool Equals (object obj)
{
if (obj == null || GetType () != obj.GetType ())
return value == ((RuntimeMethodHandle)obj).Value;
}
+#if NET_2_0
+ [ReliabilityContractAttribute (Consistency.WillNotCorruptState, Cer.Success)]
+#endif
public bool Equals (RuntimeMethodHandle handle)
{
return value == handle.Value;
using System.Runtime.Serialization;
+#if NET_2_0
+using System.Runtime.ConstrainedExecution;
+#endif
+
namespace System
{
[MonoTODO ("Serialization needs tests")]
info.AddValue ("TypeObj", Type.GetTypeHandle (this), typeof (MonoType));
}
-
+#if NET_2_0
+ [ReliabilityContractAttribute (Consistency.WillNotCorruptState, Cer.Success)]
+#endif
public override bool Equals (object obj)
{
if (obj == null || GetType () != obj.GetType ())
return value == ((RuntimeTypeHandle)obj).Value;
}
+#if NET_2_0
+ [ReliabilityContractAttribute (Consistency.WillNotCorruptState, Cer.Success)]
+#endif
public bool Equals (RuntimeTypeHandle handle)
{
return value == handle.Value;
#if NET_2_0
[CLSCompliant (false)]
+ [ReliabilityContractAttribute (Consistency.WillNotCorruptState, Cer.Success)]
public ModuleHandle GetModuleHandle () {
return Type.GetTypeFromHandle (this).Module.ModuleHandle;
}
using System.Globalization;
using System.Runtime.CompilerServices;
+#if NET_2_0
+using System.Runtime.ConstrainedExecution;
+#endif
+
namespace System
{
[Serializable]
return !Equals (a, b);
}
+#if NET_2_0
+ [ReliabilityContractAttribute (Consistency.WillNotCorruptState, Cer.MayFail)]
+#endif
public override bool Equals (Object obj)
{
return Equals (this, obj as String);
}
+#if NET_2_0
+ [ReliabilityContractAttribute (Consistency.WillNotCorruptState, Cer.MayFail)]
+#endif
public bool Equals (String value)
{
return Equals (this, value);
}
}
+#if NET_2_0
+ [ReliabilityContractAttribute (Consistency.WillNotCorruptState, Cer.MayFail)]
+#endif
public unsafe override int GetHashCode ()
{
fixed (char * c = this) {
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+#if NET_2_0
+using System.Runtime.ConstrainedExecution;
+#endif
+
namespace System
{
[Serializable]
}
public object ExceptionObject {
+#if NET_2_0
+ [ReliabilityContractAttribute (Consistency.WillNotCorruptState, Cer.Success)]
+#endif
get {
return exception;
}
}
public bool IsTerminating {
+#if NET_2_0
+ [ReliabilityContractAttribute (Consistency.WillNotCorruptState, Cer.Success)]
+#endif
get {
return m_isTerminating;
}