// Author:
// Atsushi Enomoto <atsushi@ximian.com>
//
-// (C) 2006 Novell, Inc. (http://www.novell.com)
+// Copyright (C) 2006,2009 Novell, Inc (http://www.novell.com)
//
//
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_0
using System.ComponentModel;
using System.IO;
{
public class OpenReadCompletedEventArgs : AsyncCompletedEventArgs
{
- internal OpenReadCompletedEventArgs (Stream result,
- Exception error, bool cancelled, object userState)
+ internal OpenReadCompletedEventArgs (Stream result, Exception error, bool cancelled, object userState)
: base (error, cancelled, userState)
{
this.result = result;
Stream result;
public Stream Result {
- get { return result; }
+ get {
+#if NET_2_1
+ RaiseExceptionIfNecessary ();
+#endif
+ return result;
+ }
}
}
}
-#endif