C# Class BF2Statistics.Validator

Afficher le fichier Open project: BF2Statistics/ControlCenter

Méthodes publiques

Méthode Description
IsAlphaOnly ( string line ) : bool

This method determines if the given string contains characters only. Will return false if any numbers are in the string

IsFloat ( string line ) : bool

Determines if the given string can be converted to a float

IsNumeric ( string line ) : bool

Determines if the givin string is numberic, and contains only numbers

IsValidClanTag ( string line ) : bool
IsValidEmail ( string email ) : bool

This method returns whether a provided email address is valid

IsValidPID ( string pid ) : bool
IsValidPrefix ( string line ) : bool

Method Details

IsAlphaOnly() public static méthode

This method determines if the given string contains characters only. Will return false if any numbers are in the string
public static IsAlphaOnly ( string line ) : bool
line string The string to be checked
Résultat bool

IsFloat() public static méthode

Determines if the given string can be converted to a float
public static IsFloat ( string line ) : bool
line string The string to be checked
Résultat bool

IsNumeric() public static méthode

Determines if the givin string is numberic, and contains only numbers
public static IsNumeric ( string line ) : bool
line string The string to be checked
Résultat bool

IsValidClanTag() public static méthode

public static IsValidClanTag ( string line ) : bool
line string
Résultat bool

IsValidEmail() public static méthode

This method returns whether a provided email address is valid
public static IsValidEmail ( string email ) : bool
email string
Résultat bool

IsValidPID() public static méthode

public static IsValidPID ( string pid ) : bool
pid string
Résultat bool

IsValidPrefix() public static méthode

public static IsValidPrefix ( string line ) : bool
line string
Résultat bool