// Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using Avalonia.Data;
namespace Avalonia
{
///
/// A registered binding in a .
///
internal class PriorityBindingEntry : IDisposable
{
private PriorityLevel _owner;
private IDisposable _subscription;
///
/// Initializes a new instance of the class.
///
/// The owner.
///
/// The binding index. Later bindings should have higher indexes.
///
public PriorityBindingEntry(PriorityLevel owner, int index)
{
_owner = owner;
Index = index;
}
///
/// Gets the observable associated with the entry.
///
public IObservable