Date Time C#

using System;
public class MainClass{
        /// 
        /// Gets the days between.
        /// 

        /// The first.
        /// The last.
        /// if set to true [inclusive].
        /// 
        public static int GetDaysBetween(DateTime first, DateTime last, bool inclusive)
        {
            TimeSpan span = last - first;
            return inclusive ? span.Days + 1 : span.Days;
        }
}