using System.ComponentModel;
using System.Runtime.CompilerServices;

namespace MauiApp6
{
    public partial class BaseViewModel : INotifyPropertyChanged
    {

        protected void SetAndRaisePropertyChanged<TRef>(
            ref TRef storage, TRef value, [CallerMemberName] string propertyName = null)
        {
            storage = value;
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }

        public event PropertyChangedEventHandler PropertyChanged;

    }
}
