C# Class FT.Search.Helpers.StringHelper

Afficher le fichier Open project: friism/folketsting

Méthodes publiques

Méthode Description
EmptyToNull ( string a ) : string

If a is empty, returns null

IfNullOrEmpty ( string a, string b ) : string

Like null coalescing operator (??) but including empty strings

TryParse ( string u ) : int
TryParse ( string u, int defaultValue ) : int

Method Details

EmptyToNull() public static méthode

If a is empty, returns null
public static EmptyToNull ( string a ) : string
a string
Résultat string

IfNullOrEmpty() public static méthode

Like null coalescing operator (??) but including empty strings
public static IfNullOrEmpty ( string a, string b ) : string
a string
b string
Résultat string

TryParse() public static méthode

public static TryParse ( string u ) : int
u string
Résultat int

TryParse() public static méthode

public static TryParse ( string u, int defaultValue ) : int
u string
defaultValue int
Résultat int