C# Class System.Net.ValidationHelper

Show file Open project: gbarnett/shared-source-cli-2.0

Public Properties

Property Type Description
EmptyArray string[]

Public Methods

Method Description
ExceptionMessage ( Exception exception ) : string
HashString ( object objectValue ) : string
IsBlankString ( string stringValue ) : bool
IsInvalidHttpString ( string stringValue ) : bool
MakeEmptyArrayNull ( string stringArray ) : string[]
MakeStringNull ( string stringValue ) : string
ToString ( object objectValue ) : string
ValidateRange ( int actual, int fromAllowed, int toAllowed ) : bool
ValidateTcpPort ( int port ) : bool

Method Details

ExceptionMessage() public static method

public static ExceptionMessage ( Exception exception ) : string
exception System.Exception
return string

HashString() public static method

public static HashString ( object objectValue ) : string
objectValue object
return string

IsBlankString() public static method

public static IsBlankString ( string stringValue ) : bool
stringValue string
return bool

IsInvalidHttpString() public static method

public static IsInvalidHttpString ( string stringValue ) : bool
stringValue string
return bool

MakeEmptyArrayNull() public static method

public static MakeEmptyArrayNull ( string stringArray ) : string[]
stringArray string
return string[]

MakeStringNull() public static method

public static MakeStringNull ( string stringValue ) : string
stringValue string
return string

ToString() public static method

public static ToString ( object objectValue ) : string
objectValue object
return string

ValidateRange() public static method

public static ValidateRange ( int actual, int fromAllowed, int toAllowed ) : bool
actual int
fromAllowed int
toAllowed int
return bool

ValidateTcpPort() public static method

public static ValidateTcpPort ( int port ) : bool
port int
return bool

Property Details

EmptyArray public static property

public static string[] EmptyArray
return string[]