Merge branch 'master'
[mono.git] / mcs / class / corlib / System.Threading / HostExecutionContext.cs
index 2940f82f62653b36694382e46776c9ed48afb43b..9008cf2d076c3521267ab0729b9a2805ebc869d9 100644 (file)
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
-
 namespace System.Threading {
 
        [MonoTODO ("Useless until the runtime supports it")]
-       public class HostExecutionContext {
+       public class HostExecutionContext : IDisposable {
 
                private object _state;
 
@@ -54,7 +52,15 @@ namespace System.Threading {
                        get { return _state; }
                        set { _state = value; }
                }
+
+               public void Dispose ()
+               {
+                       Dispose (true);
+                       GC.SuppressFinalize (this);
+               }
+
+               public virtual void Dispose (bool disposing)
+               {
+               }
        }
 }
-
-#endif