fCraft.IPAddressUtil.Match C# (CSharp) Method

Match() public static method

public static Match ( [ thisAddr, uint otherAddr, uint mask ) : bool
thisAddr [
otherAddr uint
mask uint
return bool
        public static bool Match( [NotNull] this IPAddress thisAddr, uint otherAddr, uint mask ) {
            if( thisAddr == null ) throw new ArgumentNullException( "thisAddr" );
            uint thisAsUInt = thisAddr.AsUInt();
            return ( thisAsUInt & mask ) == ( otherAddr & mask );
        }