.NET property generating “must declare a body because it is not marked abstract or extern” compilation error

后端 未结 9 1384
离开以前
离开以前 2021-02-13 20:03

I have a .NET 3.5 (target framework) web application. I have some code that looks like this:

public string LogPath { get; private set; }
public string ErrorMsg          


        
9条回答
  •  名媛妹妹
    2021-02-13 20:39

    Where do you define this Properties? Directly in the as*x file or in the codeBehind? (I don't think that can be a reason, but if the build-Target is .NET 3.5 I can't see anything else)

提交回复
热议问题