From f893787e692965c26da04b8b6f637d22edbedea4 Mon Sep 17 00:00:00 2001 From: neuecc Date: Fri, 26 Jul 2024 17:49:20 +0900 Subject: [PATCH] IBindableReadOnlyReactiveProperty -> IReadOnlyBindableReactiveProperty --- sandbox/WpfApp1/MainWindow.xaml.cs | 2 +- src/R3/BindableReactiveProperty.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sandbox/WpfApp1/MainWindow.xaml.cs b/sandbox/WpfApp1/MainWindow.xaml.cs index 85290c8f..1fb97719 100644 --- a/sandbox/WpfApp1/MainWindow.xaml.cs +++ b/sandbox/WpfApp1/MainWindow.xaml.cs @@ -58,7 +58,7 @@ protected override void OnClosed(EventArgs e) public class BasicUsagesViewModel : IDisposable { public BindableReactiveProperty Input { get; } - public IBindableReadOnlyReactiveProperty Output { get; } + public IReadOnlyBindableReactiveProperty Output { get; } public BasicUsagesViewModel() { diff --git a/src/R3/BindableReactiveProperty.cs b/src/R3/BindableReactiveProperty.cs index fe2972bf..0554b1fb 100644 --- a/src/R3/BindableReactiveProperty.cs +++ b/src/R3/BindableReactiveProperty.cs @@ -9,12 +9,12 @@ namespace R3; // for binding(TriggerAction, Behavior) usage -public interface IBindableReadOnlyReactiveProperty : INotifyPropertyChanged, INotifyDataErrorInfo, IDisposable +public interface IReadOnlyBindableReactiveProperty : INotifyPropertyChanged, INotifyDataErrorInfo, IDisposable { object? Value { get; } } -public interface IBindableReactiveProperty : IBindableReadOnlyReactiveProperty +public interface IBindableReactiveProperty : IReadOnlyBindableReactiveProperty { new object? Value { get; set; } void OnNext(object? value); @@ -262,7 +262,7 @@ void IBindableReactiveProperty.OnNext(object? value) // IBindableReadOnlyReactiveProperty - object? IBindableReadOnlyReactiveProperty.Value + object? IReadOnlyBindableReactiveProperty.Value { get => Value; }