serpentthegreen: (Default)
[personal profile] serpentthegreen
protected virtual void OnPropertyChanged[CallerMemberName] string PropertyName = null )
{
   PropertyChangedEventHandler handler = PropertyChanged;
   
   if( handler != null )
      handler( thisnew PropertyChangedEventArgs( PropertyName ) );
}
Не аспект, конечно и не полноценное автоматическое NotifyPropertyChanged, и вообще синтаксический сахар, но всё равно сильно удобнее.
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting
Page generated Jul. 12th, 2025 05:44 pm
Powered by Dreamwidth Studios