System.TimeSpanExtensions.TotalMonths C# (CSharp) Méthode

TotalMonths() public static méthode

public static TotalMonths ( this timeSpan ) : double?
timeSpan this
Résultat double?
		public static double? TotalMonths(this TimeSpan? timeSpan)
		{
			return timeSpan.Select(x => x.TotalDays / 30);
		}
	}