C# Class Corlib.NullableTimeSpanExtensions

Nullable{TimeSpan} extension methods
Afficher le fichier Open project: GeorgeTsiokos/corlib

Méthodes publiques

Méthode Description
AsThreadingTimeout ( this timeout ) : int

Converts a nullable timespan to System.Threading.Timeout.Infinite when null or the total amount of milliseconds when it has a value. If it exceeds Int32.MaxValue it uses Int32.MaxValue

Method Details

AsThreadingTimeout() public static méthode

Converts a nullable timespan to System.Threading.Timeout.Infinite when null or the total amount of milliseconds when it has a value. If it exceeds Int32.MaxValue it uses Int32.MaxValue
public static AsThreadingTimeout ( this timeout ) : int
timeout this the value to convert
Résultat int