+2008-07-06 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+ * GCLatencyMode.cs: Add missing attribute
+ * GCSettings.cs: Provide default data instead of throwing, add missing attrbutes,
+ enhance/add description texts
+
2007-11-21 Atsushi Enomoto <atsushi@ximian.com>
* GCSettings.cs, MemoryFailPoint.cs : initial checkin (stubs).
//
-// System.GCCollectionMode.cs
+// System.Runtime.GCLatencyMode.cs
//
//
namespace System.Runtime
{
- public enum GCLatencyMode {
+ [Serializable]
+ public enum GCLatencyMode
+ {
Batch = 0,
Interactive = 1,
LowLatency = 2
//
-// GCSettings.cs
+// System.Runtime.GCSettings.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
#if NET_2_0
-using System.Runtime.InteropServices;
+using System.Runtime.ConstrainedExecution;
namespace System.Runtime
{
public static class GCSettings
{
- [MonoTODO]
+ [MonoTODO ("Always returns false")]
public static bool IsServerGC {
- get { throw new NotImplementedException (); }
+ get { return false; }
}
- [MonoTODO (".NET 2.0 SP1 member")]
+ [MonoTODO ("Always returns GCLatencyMode.Interactive and ignores set (.NET 2.0 SP1 member)")]
public static GCLatencyMode LatencyMode {
- get { throw new NotImplementedException (); }
- set { throw new NotImplementedException (); }
+ [ReliabilityContract (Consistency.WillNotCorruptState, Cer.Success)]
+ get { return GCLatencyMode.Interactive; }
+ [ReliabilityContract (Consistency.WillNotCorruptState, Cer.Success)]
+ set { ; }
}
}
}