// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_0
-
namespace System.ComponentModel
{
- public class DoWorkEventArgs : CancelEventArgs
+ public class DoWorkEventArgs
+#if !NET_2_1
+ : CancelEventArgs
+#else
+ : EventArgs
+#endif
{
public DoWorkEventArgs (object argument)
{
get { return result; }
set { result = value; }
}
- }
-}
+#if NET_2_1
+ bool cancel;
+
+ public bool Cancel {
+ get { return cancel; }
+ set { cancel = value; }
+ }
#endif
+ }
+}