Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implements IReadOnlyReactiveProperty<T> to IReactiveProperty<T> #131

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Source/ReactiveProperty.NETStandard/IReactiveProperty.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ namespace Reactive.Bindings
/// <summary>
/// for EventToReactive and Serialization
/// </summary>
public interface IReactiveProperty : IHasErrors
public interface IReactiveProperty : IReadOnlyReactiveProperty, IHasErrors
{
/// <summary>
/// Gets or sets the value.
/// </summary>
/// <value>The value.</value>
object Value { get; set; }
new object Value { get; set; }
}

/// <summary>
/// </summary>
/// <typeparam name="T"></typeparam>
/// <seealso cref="Reactive.Bindings.IHasErrors"/>
public interface IReactiveProperty<T> : IReactiveProperty, IObservable<T>, IDisposable, INotifyPropertyChanged, INotifyDataErrorInfo
public interface IReactiveProperty<T> : IReactiveProperty, IReadOnlyReactiveProperty<T>, IObservable<T>, IDisposable, INotifyPropertyChanged, INotifyDataErrorInfo
{
/// <summary>
/// Gets or sets the value.
Expand Down
2 changes: 1 addition & 1 deletion Source/ReactiveProperty.NETStandard/ReactiveProperty.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public enum ReactivePropertyMode
/// Two-way bindable IObserable&lt;T&gt;
/// </summary>
/// <typeparam name="T"></typeparam>
public class ReactiveProperty<T> : IReactiveProperty<T>, IReadOnlyReactiveProperty<T>
public class ReactiveProperty<T> : IReactiveProperty<T>
{
/// <summary>
/// Implements of INotifyPropertyChanged.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void Dispose()
/// <summary>
/// </summary>
/// <typeparam name="T"></typeparam>
public class ReactivePropertySlim<T> : IReactiveProperty<T>, IReadOnlyReactiveProperty<T>, IObserverLinkedList<T>
public class ReactivePropertySlim<T> : IReactiveProperty<T>, IObserverLinkedList<T>
{
private const int IsDisposedFlagNumber = 1 << 9; // (reserve 0 ~ 8)

Expand Down