古いC#アプリケーションのデバッグに問題があります。コンパイルと実行すると、以下のように私にエラーを与える:
public partial class Employes
{
public string nom { get; set; }
public string prenom { get; set; }
public string FullName => $"{nom} {prenom}"; //Error here
public Employes()
{
this.inscriptions = new HashSet<inscriptions>();
this.Participants = new HashSet<Participants>();
this.Roles = new HashSet<Roles>();
}
}
コンパイルエラー:
**; expected
$ unexpected**
? –
このアプリケーションは、C#6.0の機能を使用する場合、 "古い"ものではありません... – Adrian
あなたが投稿したコード、 "古い"コード、またはこの古いプロジェクトを編集しましたか?意味、それはある時点でコンパイルされましたが、もはやコンパイルされませんでしたか?あるいはコードを変更しましたが、今はコンパイルされません。 –