MD5Checksum/Format.cs
/// <summary>
/// Formats the Data list into a github table
/// </summary>
/// <param name="dataList">List of data</param>
/// <returns>Returns table string</returns>
Formats the Data list into a github table
Formats the Data list into a github table
public static string GithubTable(List<Data> dataList)
        {
            string table =
                "Binaries | MD5 Checksum\n"
                + "------------ | -------------\n";
            foreach (var item in dataList)
                table += $"{item.file} | {item.md5}\n";
            return table.Trim();
        }
public static string GithubTable ( List < Data > dataList ) { string table = " \n " + " \n " ; foreach ( var item in dataList ) table += $" { item . file }  |  { item . md5 } \n " ; return table . Trim ( ) ; }
Formats the Data list into a github table
Formats the Data list into a github table
Returns table string
Returns table string
dataList
List<Data>
List of data
List of data