Files
astronomy/generate/dotnet/framework4/AstronomyTest/Program.cs
Don Cross 871389c9cf Fixed C# .NET Framework 4 compile error.
There is no function double.IsFinite() in .NET Framework.
Reworked the sanity check in Astronomy.Pivot so the C# code
builds in these older .NET platforms.
2022-02-21 10:54:01 -05:00

17 lines
373 B
C#

using CosineKitty;
using System;
namespace AstronomyTest
{
class Program
{
static int Main(string[] args)
{
var now = new AstroTime(DateTime.Now);
AstroTime full = Astronomy.SearchMoonPhase(180.0, now, 40.0);
Console.WriteLine("The next full moon will be: {0}", full);
return 0;
}
}
}