Files
linux-packaging-mono/mcs/class/referencesource/System/net/System/Net/WriteStreamClosedEventArgs.cs
Xamarin Public Jenkins (auto-signing) e79aa3c0ed Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
2016-08-03 10:59:49 +00:00

25 lines
1.1 KiB
C#

using System;
using System.ComponentModel;
namespace System.Net
{
//cannot mark obsolete, because we are type-forwarding this from System.Net
[EditorBrowsable(EditorBrowsableState.Never)]
public class WriteStreamClosedEventArgs : EventArgs
{
//introducing a default constructor that's obsolete, to avoid the
//issue above, caused by type forwarding
[Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
[EditorBrowsable(EditorBrowsableState.Never)]
public WriteStreamClosedEventArgs() { }
// Properties
[Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
[EditorBrowsable(EditorBrowsableState.Never)]
public Exception Error { get { return null; } }
}
//cannot mark obsolete, because we are type-forwarding this from System.Net
[EditorBrowsable(EditorBrowsableState.Never)]
public delegate void WriteStreamClosedEventHandler(object sender, WriteStreamClosedEventArgs e);
}