using System; using System.Collections.Specialized; using System.Globalization; namespace System.Net.NetworkInformation { // Token: 0x020001BD RID: 445 internal class MibUdpStatistics : UdpStatistics { // Token: 0x06000EA3 RID: 3747 RVA: 0x000291C0 File Offset: 0x000273C0 public MibUdpStatistics(global::System.Collections.Specialized.StringDictionary dic) { this.dic = dic; } // Token: 0x06000EA4 RID: 3748 RVA: 0x000291D0 File Offset: 0x000273D0 private long Get(string name) { return (this.dic[name] == null) ? 0L : long.Parse(this.dic[name], NumberFormatInfo.InvariantInfo); } // Token: 0x170004E2 RID: 1250 // (get) Token: 0x06000EA5 RID: 3749 RVA: 0x0002920C File Offset: 0x0002740C public override long DatagramsReceived { get { return this.Get("InDatagrams"); } } // Token: 0x170004E3 RID: 1251 // (get) Token: 0x06000EA6 RID: 3750 RVA: 0x0002921C File Offset: 0x0002741C public override long DatagramsSent { get { return this.Get("OutDatagrams"); } } // Token: 0x170004E4 RID: 1252 // (get) Token: 0x06000EA7 RID: 3751 RVA: 0x0002922C File Offset: 0x0002742C public override long IncomingDatagramsDiscarded { get { return this.Get("NoPorts"); } } // Token: 0x170004E5 RID: 1253 // (get) Token: 0x06000EA8 RID: 3752 RVA: 0x0002923C File Offset: 0x0002743C public override long IncomingDatagramsWithErrors { get { return this.Get("InErrors"); } } // Token: 0x170004E6 RID: 1254 // (get) Token: 0x06000EA9 RID: 3753 RVA: 0x0002924C File Offset: 0x0002744C public override int UdpListeners { get { return (int)this.Get("NumAddrs"); } } // Token: 0x04000D1A RID: 3354 private global::System.Collections.Specialized.StringDictionary dic; } }