Hallo,

Im looking for the correct syntax for creating an attribute in c# with just a get accessor.
Something along the line of this:
Code:
public int ID { get;}
Is that possible or do I have to resolve to this in order to get just the Get accessor?
Code:
int m_id;
public int ID
        {
            get { return m_id; }
        }
Thanks