User Tools

Site Tools


property

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

property [2020/08/28 06:01]
wolfgangriedmann created
property [2020/08/28 06:04] (current)
wolfgangriedmann
Line 19: Line 19:
 or define only the get (read) or set (write) accessor: or define only the get (read) or set (write) accessor:
 <code visualfoxpro>property MyProp as string get _cMyProp</code> <code visualfoxpro>property MyProp as string get _cMyProp</code>
- +You can even put more statements in a oneline property, using a comma as separator: 
 +<code visualfoxpro>property MyProp as string get _cMyProp set _cMyProp := value, self:OnPropertyChanged("MyProp")</code> 
 +And nobody inhibits you to use more sofisticated code in a property: 
 +<code visualfoxpro>public virtual property CloseButton as RelayCommand get self:_Get<RelayCommand>() set self:_Set( value )</code>
  
property.txt · Last modified: 2020/08/28 06:04 by wolfgangriedmann