PriorityItem.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Base / MS / Internal / PriorityItem.cs / 1 / PriorityItem.cs

                            using System; 

namespace System.Windows.Threading
{
    internal class PriorityItem 
    {
        public PriorityItem(T data) 
        { 
            _data = data;
        } 

        public T Data {get{return _data;}}
        public bool IsQueued { get { return _chain != null; } }
 
        // Note: not used
        // public DispatcherPriority Priority { get { return _chain.Priority; } } // NOTE: should be Priority 
 
        internal PriorityItem SequentialPrev {get{return _sequentialPrev;} set{_sequentialPrev=value;}}
        internal PriorityItem SequentialNext {get{return _sequentialNext;} set{_sequentialNext=value;}} 

        internal PriorityChain Chain {get{return _chain;} set{_chain=value;}}
        internal PriorityItem PriorityPrev {get{return _priorityPrev;} set{_priorityPrev=value;}}
        internal PriorityItem PriorityNext {get{return _priorityNext;} set{_priorityNext=value;}} 

        private T _data; 
 
        private PriorityItem _sequentialPrev;
        private PriorityItem _sequentialNext; 

        private PriorityChain _chain;
        private PriorityItem _priorityPrev;
        private PriorityItem _priorityNext; 
    }
} 
 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
using System; 

namespace System.Windows.Threading
{
    internal class PriorityItem 
    {
        public PriorityItem(T data) 
        { 
            _data = data;
        } 

        public T Data {get{return _data;}}
        public bool IsQueued { get { return _chain != null; } }
 
        // Note: not used
        // public DispatcherPriority Priority { get { return _chain.Priority; } } // NOTE: should be Priority 
 
        internal PriorityItem SequentialPrev {get{return _sequentialPrev;} set{_sequentialPrev=value;}}
        internal PriorityItem SequentialNext {get{return _sequentialNext;} set{_sequentialNext=value;}} 

        internal PriorityChain Chain {get{return _chain;} set{_chain=value;}}
        internal PriorityItem PriorityPrev {get{return _priorityPrev;} set{_priorityPrev=value;}}
        internal PriorityItem PriorityNext {get{return _priorityNext;} set{_priorityNext=value;}} 

        private T _data; 
 
        private PriorityItem _sequentialPrev;
        private PriorityItem _sequentialNext; 

        private PriorityChain _chain;
        private PriorityItem _priorityPrev;
        private PriorityItem _priorityNext; 
    }
} 
 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK