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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EmptyImpersonationContext.cs
- XslException.cs
- EntityViewContainer.cs
- AssemblyInfo.cs
- SqlCharStream.cs
- mediapermission.cs
- TrackingMemoryStream.cs
- LineGeometry.cs
- RequestSecurityTokenSerializer.cs
- BuildManagerHost.cs
- ResourcePool.cs
- Image.cs
- CodeSnippetExpression.cs
- SelectionEditingBehavior.cs
- FileUtil.cs
- SmiEventSink_DeferedProcessing.cs
- TextBox.cs
- X509CertificateTrustedIssuerElementCollection.cs
- AutomationIdentifierGuids.cs
- MobileListItem.cs
- SoapBinding.cs
- HebrewCalendar.cs
- RegularExpressionValidator.cs
- CodeBlockBuilder.cs
- Addressing.cs
- ViewSimplifier.cs
- ObjectNotFoundException.cs
- DataGridViewCellEventArgs.cs
- ControlAdapter.cs
- CompiledScopeCriteria.cs
- CodeObject.cs
- NonParentingControl.cs
- UIAgentRequest.cs
- EUCJPEncoding.cs
- PackageStore.cs
- ToolStripItemRenderEventArgs.cs
- _AuthenticationState.cs
- UnsafeNativeMethods.cs
- ObjectQueryState.cs
- AsyncOperation.cs
- ImageDrawing.cs
- AutomationPatternInfo.cs
- ComboBox.cs
- WebPartTracker.cs
- OdbcDataReader.cs
- WindowAutomationPeer.cs
- CompressStream.cs
- ProjectionCamera.cs
- QueryExpr.cs
- SoapReflectionImporter.cs
- XmlReflectionMember.cs
- MenuAdapter.cs
- DocumentXmlWriter.cs
- EventMemberCodeDomSerializer.cs
- ProviderIncompatibleException.cs
- DateTimeFormat.cs
- unsafenativemethodsother.cs
- NextPreviousPagerField.cs
- Directory.cs
- XmlReflectionMember.cs
- RegexMatch.cs
- DPTypeDescriptorContext.cs
- MultiSelector.cs
- Regex.cs
- CodeLinePragma.cs
- FrameworkContentElement.cs
- serverconfig.cs
- IsolatedStorageFile.cs
- DefaultIfEmptyQueryOperator.cs
- ValueTable.cs
- SessionIDManager.cs
- Section.cs
- MembershipUser.cs
- DataSourceConverter.cs
- StorageEntityContainerMapping.cs
- EventArgs.cs
- CodeEventReferenceExpression.cs
- SqlConnectionString.cs
- XmlUtil.cs
- CompositeFontParser.cs
- PersonalizationState.cs
- FloaterBaseParagraph.cs
- IListConverters.cs
- HwndSubclass.cs
- ReflectTypeDescriptionProvider.cs
- UInt64Storage.cs
- ConfigLoader.cs
- StateMachineDesignerPaint.cs
- TopClause.cs
- MetadataUtilsSmi.cs
- SolidColorBrush.cs
- Scripts.cs
- CommandTreeTypeHelper.cs
- SmtpAuthenticationManager.cs
- StorageRoot.cs
- JsonWriter.cs
- DesignerProperties.cs
- DockingAttribute.cs
- cookieexception.cs
- SafeNativeMethods.cs