mirror of
https://github.com/Cysharp/R3.git
synced 2026-10-17 05:10:36 +08:00
rename
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -30,12 +30,12 @@ public static class ReactivePropertyExtensions
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user