public bool hasLock { get; set; }
Public Property hasLock As Boolean Get Set
public: property bool hasLock { bool get (); void set (bool value); }