C# 클래스 Corlib.NullableTimeSpanExtensions

Nullable{TimeSpan} extension methods
파일 보기 프로젝트 열기: GeorgeTsiokos/corlib

공개 메소드들

메소드 설명
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

메소드 상세

AsThreadingTimeout() 공개 정적인 메소드

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
리턴 int