Skip to content

Commit

Permalink
Merge pull request #239 from hsytkm/rename_robrp
Browse files Browse the repository at this point in the history
ToBindableReadOnlyReactiveProperty -> ToReadOnlyBindableReactiveProperty
  • Loading branch information
neuecc authored Jul 27, 2024
2 parents 378fa77 + 28a3192 commit da07401
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sandbox/WpfApp1/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public class BasicUsagesViewModel : IDisposable
public BasicUsagesViewModel()
{
Input = new BindableReactiveProperty<string>("");
Output = Input.Select(x => x.ToUpper()).ToBindableReadOnlyReactiveProperty("");
Output = Input.Select(x => x.ToUpper()).ToReadOnlyBindableReactiveProperty("");
}

public void Dispose()
Expand Down
4 changes: 2 additions & 2 deletions src/R3/ReactivePropertyExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ public static BindableReactiveProperty<T> ToBindableReactiveProperty<T>(this Obs
return new BindableReactiveProperty<T>(source, initialValue, equalityComparer);
}

public static IBindableReactiveProperty ToBindableReadOnlyReactiveProperty<T>(this Observable<T> source, T initialValue = default!)
public static IBindableReactiveProperty ToReadOnlyBindableReactiveProperty<T>(this Observable<T> source, T initialValue = default!)
{
return new BindableReactiveProperty<T>(source, initialValue, EqualityComparer<T>.Default);
}

public static IBindableReactiveProperty ToBindableReadOnlyReactiveProperty<T>(this Observable<T> source, IEqualityComparer<T>? equalityComparer, T initialValue = default!)
public static IBindableReactiveProperty ToReadOnlyBindableReactiveProperty<T>(this Observable<T> source, IEqualityComparer<T>? equalityComparer, T initialValue = default!)
{
return new BindableReactiveProperty<T>(source, initialValue, equalityComparer);
}
Expand Down

0 comments on commit da07401

Please sign in to comment.