none
Auto-Implemented Properties RRS feed

  • Question

  • Dear all,

    My project is upgraded from previous version (.NET 2.0)
    After I upgrade the project and run the project in VS2008, I tried to test "Auto-Implemented Properties".

    However, I found an error when I compile the project. Is there something I need to set in order to activate this featrue?
    Thank you for your help
    Saturday, June 6, 2009 1:30 PM

Answers

  • Yeah.  You need to get the syntax correct.
    Mark the best replies as answers. "Fooling computers since 1971."
    • Marked as answer by winipcfg Saturday, June 6, 2009 1:58 PM
    Saturday, June 6, 2009 1:34 PM

All replies

  • Yeah.  You need to get the syntax correct.
    Mark the best replies as answers. "Fooling computers since 1971."
    • Marked as answer by winipcfg Saturday, June 6, 2009 1:58 PM
    Saturday, June 6, 2009 1:34 PM
  • What error do you get? Can you post the error as well as the code here?
    http://blog.voidnish.com
    Saturday, June 6, 2009 1:40 PM

  • What error are you getting ?

         public string EmployeeName { get; set; }
            public int EmployeeID { get; set; }


    Ganesh Ranganathan
    [Please mark the post as answer if you find it helpful]
    • Proposed as answer by Rudedog2 Saturday, June 6, 2009 1:50 PM
    Saturday, June 6, 2009 1:42 PM
  • Thanks for quick reply

    I find that the problem is due to incorrect code. I have a static function to assign values to the property but the property is not static
    After I fix it, the problem is solved
    Saturday, June 6, 2009 1:58 PM