// defines a firmware file private static FirmwareFile File(string hash, long size, string recommendedName, string descr, string additionalInfo = "") { hash = hash.ToUpperInvariant(); var ff = new FirmwareFile { Hash = hash, Size = size, RecommendedName = recommendedName, Description = descr, Info = additionalInfo }; FirmwareFiles.Add(ff); FirmwareFilesByHash[hash] = ff; return ff; }
//defines a firmware file static FirmwareFile File(string hash, string recommendedName, string descr, string additionalInfo = "") { string hashfix = hash.ToUpperInvariant(); var ff = new FirmwareFile { hash = hashfix, recommendedName = recommendedName, descr = descr, info = additionalInfo }; FirmwareFiles.Add(ff); FirmwareFilesByHash[hashfix] = ff; return(ff); }