Ad
  • Default User Avatar

    This isn't possible in any current version of C#.

    2^31 = 2147483648

    (DateTime.MaxValue - DateTime.MinValue).TotalDays = 3652059 (less than 2^31)

    cycleLength is int, which has a max value of 2147483647 (less than 2^31)

    There is no possible way to pass this method values that will cause the error you describe.