C# implementation for the EaW Modinfo Specification
var file = new FileInfo("modinfo.json");
IModinfoFile modinfoFile = new MainModinfoFile(file);
IModinfo modinfo = modinfoFile.GetModinfo();
var file = new DirectoryInfo("YourModPath");
IModinfoFileFinder finder = new ModinfoFileFinder(dir);
ModinfoFinderCollection result = finder.Find(FindOptions.FindAny);
IModinfoFile mainFile = result.MainModinfo;
IEnumerable<IModinfoFile> variantFiles = result.Variants;
var file1 = new FileInfo("modinfo.json");
IModinfoFile mainModinfoFile = new MainModinfoFile(file1);
var file2 = new FileInfo("varaint-modinfo.json");
IModinfoFile variantDerived = new ModinfoVariantFile(file2, mainModinfoFile);