How do I create auto-implemented properties in the VS class designer

前端 未结 4 836
悲&欢浪女
悲&欢浪女 2021-01-18 04:06

I\'m using the class designer in Visual Studio 2008 and when I add properties to my classes they are created with an empty setter and a getter that throws a NotImplementedEx

4条回答
  •  长发绾君心
    2021-01-18 04:33

    AFAIK, you can't. I asked this at Barcelona a year or so ago - I don't think anything has changed. Basically, as I understand it, this is done directly (not via an editable snippet).

提交回复
热议问题