Dagsetningar 1.0.1

dotnet add package Dagsetningar --version 1.0.1                
NuGet\Install-Package Dagsetningar -Version 1.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Dagsetningar" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Dagsetningar --version 1.0.1                
#r "nuget: Dagsetningar, 1.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Dagsetningar as a Cake Addin
#addin nuget:?package=Dagsetningar&version=1.0.1

// Install Dagsetningar as a Cake Tool
#tool nuget:?package=Dagsetningar&version=1.0.1                

How to use the package

After creating a console windows application

You could list all the dates Icelanders are concerned with. This includes dates like "Páskadagur" (Easter) and "Bóndadagur" (Husband day). Where the Páskadagur is a Holiday but the Bóndadagur is not.

In the example below we are creating a string containing a array of Json objects. Which can be sent directly and de-serialized on the other end.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using IcelandicDates;
namespace ConsoleApplication4
{
 class Program
 {
    static void Main(string[] args)
    {
       Dagsetningar ds = new Dagsetningar();
       var list = ds.Nofn(new DateTime(2018, 1, 1), new DateTime(2018, 12, 31));
       string listi = "[";

       for (int i = 0; i < list.Count; i++)
       {
          if (i > 0)
             listi += "," + list[i].toJsonString();
          else
             listi += list[i].toJsonString();
       }
       listi += "]";
       System.Console.WriteLine(listi);
    }
 }
}

Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 1,097 3/25/2018
1.0.0 958 2/5/2018

Fixing konudagur.