Ejemplo n.º 1
0
        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];
        }
Ejemplo n.º 2
0
 public void CopyMac(IasMap that)
 {
     this[fieldMac] = that[fieldMac];
 }