@@ -1,3 +1,8 @@
+2003-03-03 Lluis Sanchez Gual <[email protected]>
+
+ * Thread.cs: Changed implementation of CurrentContext, adapted to the changes
+ in the runtime.
2003-02-19 Gonzalo Paniagua Javier <[email protected]>
* Thread.cs: implemented CurrentContext.
@@ -35,13 +35,7 @@ namespace System.Threading
public static Context CurrentContext {
get {
- Context ctx = AppDomain.InternalGetContext ();
- if (ctx == null) {
- ctx = Context.DefaultContext;
- AppDomain.InternalSetContext (ctx);
- }
-
- return ctx;
+ return(AppDomain.InternalGetContext ());
}