PropertyRecord.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Framework / System / Windows / Documents / PropertyRecord.cs / 1 / PropertyRecord.cs

                            //---------------------------------------------------------------------------- 
//
// File: PropertyRecord.cs
//
// Description: DependencyProperty/value pair struct used by TextContainer undo. 
//
// History: 
//  03/03/2004 : benwest - 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 : benwest - 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