From 28a3192b7a4bc95bebcbd719eaf6b390d98efe79 Mon Sep 17 00:00:00 2001 From: thinva <34601860+hsytkm@users.noreply.github.com> Date: Sat, 27 Jul 2024 10:30:08 +0900 Subject: [PATCH] rename --- sandbox/WpfApp1/MainWindow.xaml.cs | 2 +- src/R3/ReactivePropertyExtensions.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sandbox/WpfApp1/MainWindow.xaml.cs b/sandbox/WpfApp1/MainWindow.xaml.cs index 1fb97719..74436b64 100644 --- a/sandbox/WpfApp1/MainWindow.xaml.cs +++ b/sandbox/WpfApp1/MainWindow.xaml.cs @@ -63,7 +63,7 @@ public class BasicUsagesViewModel : IDisposable public BasicUsagesViewModel() { Input = new BindableReactiveProperty(""); - Output = Input.Select(x => x.ToUpper()).ToBindableReadOnlyReactiveProperty(""); + Output = Input.Select(x => x.ToUpper()).ToReadOnlyBindableReactiveProperty(""); } public void Dispose() diff --git a/src/R3/ReactivePropertyExtensions.cs b/src/R3/ReactivePropertyExtensions.cs index 5e6955c9..16d08626 100644 --- a/src/R3/ReactivePropertyExtensions.cs +++ b/src/R3/ReactivePropertyExtensions.cs @@ -30,12 +30,12 @@ public static BindableReactiveProperty ToBindableReactiveProperty(this Obs return new BindableReactiveProperty(source, initialValue, equalityComparer); } - public static IBindableReactiveProperty ToBindableReadOnlyReactiveProperty(this Observable source, T initialValue = default!) + public static IBindableReactiveProperty ToReadOnlyBindableReactiveProperty(this Observable source, T initialValue = default!) { return new BindableReactiveProperty(source, initialValue, EqualityComparer.Default); } - public static IBindableReactiveProperty ToBindableReadOnlyReactiveProperty(this Observable source, IEqualityComparer? equalityComparer, T initialValue = default!) + public static IBindableReactiveProperty ToReadOnlyBindableReactiveProperty(this Observable source, IEqualityComparer? equalityComparer, T initialValue = default!) { return new BindableReactiveProperty(source, initialValue, equalityComparer); }