Extension Methods from Arjan Keene
-
IsValidIPAddress
Validates whether a string is a valid IPv4 address.
-
IsStrongPassword
Validates whether a string is compliant with a strong password policy.
-
MultiplyBy
A simple multiplication extension. Backing idea is to overcome the ridiculous flaw in the Int32 value type when a regular multiplication overflows the Int32 value range. Along these lines it would also be possible to gracefully return larger values as e.g. longs, or as BigInt (when the BCL team gets around to implementing it ;-). But the example here sticks to the bounds of the Int32 range.