arjan-keene submitted these extension methods

  • IsValidIPAddress

    Validates whether a string is a valid IPv4 address.
    C# System.String Arjan Keene
  • IsStrongPassword

    Validates whether a string is compliant with a strong password policy.
    C# System.String Arjan Keene
  • 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.
    C# System.Int32 Arjan Keene

 

;