/// <summary> /// Converts an string into an EthernetAddress instance. /// </summary> /// <exception cref="ArgumentNullException">Thrown if /// <c>macString</c> is null.</exception> /// <returns> <c>true</c> on success, <c>false</c> on failure.</returns> public static bool Parse(string macString, out EthernetAddress address) { try { address = Parse(macString); } catch (FormatException) { address = EthernetAddress.Zero; return(false); } return(true); }
public int CompareTo(object other) { if (other == null) { return(1); } if (other is EthernetAddress) { EthernetAddress value = (EthernetAddress)other; if (this < value) { return(-1); } if (this > value) { return(+1); } return(0); } throw new ArgumentException("Arg_MustBeEthernetAddress"); }
public EthernetAddress(EthernetAddress other) { this.u03 = other.u03; this.u45 = other.u45; }