NullExtension.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 / Markup / NullExtension.cs / 1 / NullExtension.cs

                            /****************************************************************************\ 
*
* File: NullExtension.cs
*
*  Class for Xaml markup extension {Null} 
*
* Copyright (C) 2004 by Microsoft Corporation.  All rights reserved. 
* 
\***************************************************************************/
 
using System;
using System.Windows;

namespace System.Windows.Markup 
{
    ///  
    ///  Class for Xaml markup extension for Null. 
    /// 
    [MarkupExtensionReturnType(typeof(object))] 
    public class NullExtension : MarkupExtension
    {
        /// 
        ///  Default constructor 
        /// 
        public NullExtension() 
        { 
        }
 
        /// 
        ///  Return an object that should be set on the targetObject's targetProperty
        ///  for this markup extension.  In this case it is simply null.
        ///  
        /// Object that can provide services for the markup extension.
        ///  
        ///  The object to set on this property. 
        /// 
        public override object ProvideValue(IServiceProvider serviceProvider) 
        {
            return null;
        }
 
    }
} 
 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
/****************************************************************************\ 
*
* File: NullExtension.cs
*
*  Class for Xaml markup extension {Null} 
*
* Copyright (C) 2004 by Microsoft Corporation.  All rights reserved. 
* 
\***************************************************************************/
 
using System;
using System.Windows;

namespace System.Windows.Markup 
{
    ///  
    ///  Class for Xaml markup extension for Null. 
    /// 
    [MarkupExtensionReturnType(typeof(object))] 
    public class NullExtension : MarkupExtension
    {
        /// 
        ///  Default constructor 
        /// 
        public NullExtension() 
        { 
        }
 
        /// 
        ///  Return an object that should be set on the targetObject's targetProperty
        ///  for this markup extension.  In this case it is simply null.
        ///  
        /// Object that can provide services for the markup extension.
        ///  
        ///  The object to set on this property. 
        /// 
        public override object ProvideValue(IServiceProvider serviceProvider) 
        {
            return null;
        }
 
    }
} 
 

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