PropertyRecord.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Documents / PropertyRecord.cs / 1305600 / PropertyRecord.cs

                            //---------------------------------------------------------------------------- 
//
// File: PropertyRecord.cs
//
// Description: DependencyProperty/value pair struct used by TextContainer undo. 
//
// History: 
//  03/03/2004 : [....] - Created 
//
//--------------------------------------------------------------------------- 

using System;

namespace System.Windows.Documents 
{
    // This struct records DependencyProperty/value pairs. We use the struct 
    // extensively because LocalValueEnumerators may not be cached safely. 
    // It is identical to base's LocalValueEntry except that it adds setters.
    internal struct PropertyRecord 
    {
        internal DependencyProperty Property
        {
            get { return _property; } 
            set { _property = value; }
        } 
 
        internal object Value
        { 
            get { return _value; }
            set { _value = value; }
        }
 
        private DependencyProperty _property;
 
        private object _value; 
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------- 
//
// File: PropertyRecord.cs
//
// Description: DependencyProperty/value pair struct used by TextContainer undo. 
//
// History: 
//  03/03/2004 : [....] - Created 
//
//--------------------------------------------------------------------------- 

using System;

namespace System.Windows.Documents 
{
    // This struct records DependencyProperty/value pairs. We use the struct 
    // extensively because LocalValueEnumerators may not be cached safely. 
    // It is identical to base's LocalValueEntry except that it adds setters.
    internal struct PropertyRecord 
    {
        internal DependencyProperty Property
        {
            get { return _property; } 
            set { _property = value; }
        } 
 
        internal object Value
        { 
            get { return _value; }
            set { _value = value; }
        }
 
        private DependencyProperty _property;
 
        private object _value; 
    }
} 

// 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