これで結構です:
Console.WriteLine("this is the key that has run: {0}", this.ReportKey.ToString());
文字列をまとめるこの方法は、コンソールの引数を作成するときにのみ使用できますか、それとも他のコンテキストで使用できますか?以下で使用できますか?私は失敗した試みをしました。
public string RunTheReport(){
return "Name: " + this.ReportName " key: " + this.ReportKey.ToString();
//return ("Name: {0} key: {1}", this.ReportName, this.ReportKey.ToString()); <<is there a way to avoid using all the "+" signs?
}