public IasRecord(IasMap map) { date = DateTime.Parse(map["datetime"]); mac = FormatMacAddr(map[fieldMac]); if (!Regex.IsMatch(mac, @"^[0-9a-f]+$")) { throw new ArgumentException("Invalid MAC address (" + mac + ") in field " + fieldMac + "."); } logon = FormatLogon(map[fieldLogon]); // if(! Regex.IsMatch(logon, @"^[a-z][-a-z0-9]*$")) throw new ArgumentException("Invalid logon (" + logon + ") in field " + fieldLogon + "."); key = string.Format("{0}-{1}", mac, logon); ap = map[fieldAp]; }
public void CopyMac(IasMap that) { this[fieldMac] = that[fieldMac]; }