0

行が印刷されたときに次のようになるように出力をフォーマットしようとしています

Name          Price
LongName      Price
Name3         Price

テーブルっぽくしたい。これが私のコードです

        var byValue =
            from i in invoices
            let total = (i.Quantity * i.Price)
            orderby total
            select i.PartDescription + " " + total;

        foreach (var element in byValue)
            Console.WriteLine(element);
4

1 に答える 1