You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
660 B

using System;
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace DragNDrop.Model;
public class Cage : INotifyPropertyChanged
{
public event PropertyChangedEventHandler? PropertyChanged;
void OnPropertyChanged([CallerMemberName] string propertyName = "")
=> PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
public Nounours? MyPrecious
{
get => myPrecious;
set
{
if (ReferenceEquals(value, myPrecious))
return;
myPrecious = value;
OnPropertyChanged();
}
}
private Nounours? myPrecious;
}