using System; using System.ComponentModel; namespace System.Net { /// Provides data for the event of a . // Token: 0x02000214 RID: 532 public class DownloadProgressChangedEventArgs : global::System.ComponentModel.ProgressChangedEventArgs { // Token: 0x06001222 RID: 4642 RVA: 0x00036528 File Offset: 0x00034728 internal DownloadProgressChangedEventArgs(long bytesReceived, long totalBytesToReceive, object userState) : base((totalBytesToReceive == -1L) ? 0 : ((int)(bytesReceived * 100L / totalBytesToReceive)), userState) { this.received = bytesReceived; this.total = totalBytesToReceive; } /// Gets the number of bytes received. /// An value that indicates the number of bytes received. // Token: 0x170005EC RID: 1516 // (get) Token: 0x06001223 RID: 4643 RVA: 0x00036558 File Offset: 0x00034758 public long BytesReceived { get { return this.received; } } /// Gets the total number of bytes in a data download operation. /// An value that indicates the number of bytes that will be received. // Token: 0x170005ED RID: 1517 // (get) Token: 0x06001224 RID: 4644 RVA: 0x00036560 File Offset: 0x00034760 public long TotalBytesToReceive { get { return this.total; } } // Token: 0x04000FB1 RID: 4017 private long received; // Token: 0x04000FB2 RID: 4018 private long total; } }