| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using System.ComponentModel;
- using System.Runtime.CompilerServices;
- using JetBrains.Annotations;
- namespace Avalonia.Benchmarks.Data
- {
- internal class AccessorTestObject : INotifyPropertyChanged
- {
- private string _test;
- public string Test
- {
- get => _test;
- set
- {
- if (_test == value)
- {
- return;
- }
- _test = value;
- OnPropertyChanged();
- }
- }
- public event PropertyChangedEventHandler PropertyChanged;
- public void Execute()
- {
- }
- public void Execute(object p0)
- {
- }
- public void Execute(object p0, object p1)
- {
- }
- [NotifyPropertyChangedInvocator]
- protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
- {
- PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
- }
- }
- }
|