Automatic properties

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Peter K

    #1

    Automatic properties

    Hi

    is it possible to have a default value for an automatic property?

    For example, say I have a property

    public string Name { get; set; }

    Can I have the "name" set to a default value of "Peter"? (I guess I could
    write a constructor that does this).


    /Peter
Working...