Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Base / System / Windows / Markup / DependsOnAttribute.cs / 1 / DependsOnAttribute.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2005 // // File: DependsOnAttribute.cs // // Contents: An attribute that allows declaring that one property // depends on the value of another property. The serialization // system will ensure that the listed property is serialized // prior to the property that this attribute is set on. // Care must be taken to avoid circular dependencies. They // are only detected when writing all the properties in the // cycle. // // Created: 04/28/2005 chuckj // //----------------------------------------------------------------------- using System; namespace System.Windows.Markup { ////// DependsOnAttribute allows declaring that one property /// depends on the value of another property. The serialization /// system will ensure that the listed property is serialized /// prior to the property that this attribute is set on. /// Care must be taken to avoid circular dependencies. They /// are only detected when writing all the properties in the /// cycle. /// [AttributeUsage(AttributeTargets.Property | AttributeTargets.Method, AllowMultiple=true)] public sealed class DependsOnAttribute: Attribute { ////// Constructor for DependsOnAttribute /// /// The name of the property that the property depends on public DependsOnAttribute(string name) { _name = name; } ////// Override of Attribute.TypeId /// public override object TypeId { // this allows multiple DependsOn attributes to show up in the // PropertyDescriptor.Attributes collection. (bug 1611449) get { return this; } } ////// The name of the property that is declared to depend on /// public string Name { get { return _name; } } private string _name; } } // 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
- PaperSize.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- PowerModeChangedEventArgs.cs
- WindowsButton.cs
- ProgressBarAutomationPeer.cs
- RelationshipEndMember.cs
- OdbcConnectionHandle.cs
- SRGSCompiler.cs
- MarshalDirectiveException.cs
- StyleXamlParser.cs
- HyperLinkDesigner.cs
- CuspData.cs
- SqlSelectClauseBuilder.cs
- DataGridViewCellCollection.cs
- EndpointReference.cs
- ViewLoader.cs
- LoginName.cs
- CodeVariableDeclarationStatement.cs
- ItemsPresenter.cs
- WebControl.cs
- SoapMessage.cs
- LazyTextWriterCreator.cs
- MsmqBindingBase.cs
- Math.cs
- HostedTcpTransportManager.cs
- GenericTransactionFlowAttribute.cs
- ChangeBlockUndoRecord.cs
- PathTooLongException.cs
- PageSetupDialog.cs
- RemoteWebConfigurationHostServer.cs
- CodeIdentifiers.cs
- ErrorFormatterPage.cs
- ScriptResourceAttribute.cs
- ResourceBinder.cs
- ServicesExceptionNotHandledEventArgs.cs
- TabletCollection.cs
- PresentationSource.cs
- Thread.cs
- QueryRewriter.cs
- ConcurrentQueue.cs
- PointLightBase.cs
- InvariantComparer.cs
- DuplicateWaitObjectException.cs
- CompiledQueryCacheEntry.cs
- ProviderMetadataCachedInformation.cs
- ModelItemCollectionImpl.cs
- SequentialOutput.cs
- BindingWorker.cs
- ScriptReference.cs
- MessageBuffer.cs
- MetabaseReader.cs
- IpcServerChannel.cs
- Material.cs
- TreeNodeConverter.cs
- EntityCommandCompilationException.cs
- SerializationObjectManager.cs
- SetIterators.cs
- WhitespaceRule.cs
- ToolBarTray.cs
- ButtonField.cs
- SqlDependency.cs
- LocalizedNameDescriptionPair.cs
- RuntimeConfig.cs
- CodeCatchClause.cs
- CodeEntryPointMethod.cs
- MessageDecoder.cs
- OrderByExpression.cs
- Point.cs
- InvalidOleVariantTypeException.cs
- MissingFieldException.cs
- XmlSchemaAnyAttribute.cs
- ObjectSecurity.cs
- TextEditorCopyPaste.cs
- ParentQuery.cs
- CompoundFileIOPermission.cs
- DefaultExpressionVisitor.cs
- CodeTypeDelegate.cs
- GACMembershipCondition.cs
- ParentUndoUnit.cs
- ToolStripMenuItem.cs
- elementinformation.cs
- EditorAttribute.cs
- _FtpControlStream.cs
- _ListenerRequestStream.cs
- RTLAwareMessageBox.cs
- SourceChangedEventArgs.cs
- Substitution.cs
- CookielessHelper.cs
- ObjectViewFactory.cs
- ObjectAnimationUsingKeyFrames.cs
- PageStatePersister.cs
- XmlDictionaryString.cs
- base64Transforms.cs
- BinaryUtilClasses.cs
- EdmItemError.cs
- StateWorkerRequest.cs
- XmlUtf8RawTextWriter.cs
- PropertyOverridesTypeEditor.cs
- CultureNotFoundException.cs
- SubtreeProcessor.cs