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
- KnownBoxes.cs
- ExceptionUtil.cs
- OleDbFactory.cs
- unsafenativemethodsother.cs
- MenuItemBindingCollection.cs
- HandledEventArgs.cs
- EnumValAlphaComparer.cs
- PlatformCulture.cs
- ObjectHandle.cs
- AsyncInvokeOperation.cs
- CloudCollection.cs
- FormCollection.cs
- Matrix3D.cs
- InputEventArgs.cs
- DesignRelationCollection.cs
- BrowserCapabilitiesCompiler.cs
- CalendarItem.cs
- HeaderFilter.cs
- MimeParameter.cs
- EntityDataSource.cs
- AtomicFile.cs
- XmlComment.cs
- CodeMemberField.cs
- propertyentry.cs
- ProjectionQueryOptionExpression.cs
- AuthenticationService.cs
- SqlPersonalizationProvider.cs
- AutoGeneratedField.cs
- recordstate.cs
- _TransmitFileOverlappedAsyncResult.cs
- Query.cs
- RichTextBox.cs
- WebHttpEndpointElement.cs
- SymDocumentType.cs
- HttpListenerException.cs
- ETagAttribute.cs
- SolidColorBrush.cs
- OdbcConnectionStringbuilder.cs
- DataBoundControlHelper.cs
- TcpAppDomainProtocolHandler.cs
- MD5CryptoServiceProvider.cs
- EventRouteFactory.cs
- ReadOnlyNameValueCollection.cs
- AbsoluteQuery.cs
- LoadMessageLogger.cs
- TransformerConfigurationWizardBase.cs
- MatchNoneMessageFilter.cs
- EndpointDiscoveryBehavior.cs
- SecurityPolicySection.cs
- DataGridViewComboBoxColumnDesigner.cs
- LiteralControl.cs
- UseAttributeSetsAction.cs
- UpnEndpointIdentityExtension.cs
- StringPropertyBuilder.cs
- BinaryKeyIdentifierClause.cs
- PropertyMapper.cs
- FrameworkPropertyMetadata.cs
- EditingCommands.cs
- StorageConditionPropertyMapping.cs
- DateTimeFormatInfo.cs
- RegexWorker.cs
- HelpEvent.cs
- TextChangedEventArgs.cs
- Compiler.cs
- ResponseStream.cs
- EmulateRecognizeCompletedEventArgs.cs
- KnownBoxes.cs
- SkinBuilder.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- XpsFontSubsetter.cs
- CompilerError.cs
- SystemIcmpV4Statistics.cs
- WebErrorHandler.cs
- CodeStatement.cs
- HandleValueEditor.cs
- XmlEntity.cs
- XmlObjectSerializerWriteContext.cs
- BamlTreeMap.cs
- ObjectCloneHelper.cs
- DataReaderContainer.cs
- ModelUIElement3D.cs
- METAHEADER.cs
- InfoCardUIAgent.cs
- MLangCodePageEncoding.cs
- SafeProcessHandle.cs
- DataProtection.cs
- DataControlLinkButton.cs
- ActivityBuilderXamlWriter.cs
- ElementNotAvailableException.cs
- EntityFunctions.cs
- Compilation.cs
- _Win32.cs
- SchemaDeclBase.cs
- Merger.cs
- TraceHandler.cs
- CellLabel.cs
- OdbcErrorCollection.cs
- CodeDelegateCreateExpression.cs
- EmptyStringExpandableObjectConverter.cs
- NameScopePropertyAttribute.cs