Skip to content

Instantly share code, notes, and snippets.

@rdelrosario
Created June 20, 2021 13:36
Show Gist options
  • Save rdelrosario/bc23994b11f8f0b7b6050b3bd2a16e85 to your computer and use it in GitHub Desktop.
Save rdelrosario/bc23994b11f8f0b7b6050b3bd2a16e85 to your computer and use it in GitHub Desktop.
namespace ReactiveToDoSample.Models
{
public class Item : ReactiveObject
{
public Item(string id, string title)
{
Id = id;
Title = title;
}
public string Id { get; }
public string Title { get; }
public bool IsCompleted
{
get => _isCompleted;
set => this.RaiseAndSetIfChanged(ref _isCompleted, value);
}
private bool _isCompleted;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment