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
- CompositeDataBoundControl.cs
- SecurityKeyType.cs
- XmlAnyElementAttribute.cs
- CqlParserHelpers.cs
- MethodAccessException.cs
- StringReader.cs
- XmlDataLoader.cs
- UnsafeNativeMethods.cs
- XmlNullResolver.cs
- _NativeSSPI.cs
- Table.cs
- SqlWriter.cs
- RealProxy.cs
- HtmlTableRowCollection.cs
- SqlDataRecord.cs
- EventRoute.cs
- PersistChildrenAttribute.cs
- RegistryConfigurationProvider.cs
- InheritanceAttribute.cs
- Transform3D.cs
- CompilerLocalReference.cs
- DesignerAdapterUtil.cs
- DynamicUpdateCommand.cs
- SettingsAttributes.cs
- PathTooLongException.cs
- TextSelectionHighlightLayer.cs
- StatusBarPanelClickEvent.cs
- SymmetricSecurityBindingElement.cs
- TreeViewImageKeyConverter.cs
- _ListenerResponseStream.cs
- NameGenerator.cs
- ImageSource.cs
- FileUpload.cs
- UserControl.cs
- PrivilegedConfigurationManager.cs
- ExtendedPropertyDescriptor.cs
- XmlDocumentFragment.cs
- PrePrepareMethodAttribute.cs
- CleanUpVirtualizedItemEventArgs.cs
- Int32CAMarshaler.cs
- SmiEventSink.cs
- OptimisticConcurrencyException.cs
- SqlDataSourceQueryEditorForm.cs
- SeparatorAutomationPeer.cs
- _AutoWebProxyScriptEngine.cs
- Clock.cs
- SafeArrayTypeMismatchException.cs
- WriterOutput.cs
- X509ChainElement.cs
- AmbiguousMatchException.cs
- DataBoundControlDesigner.cs
- PageThemeParser.cs
- ConfigXmlSignificantWhitespace.cs
- FileDialog.cs
- MostlySingletonList.cs
- Base64Encoder.cs
- Geometry3D.cs
- DuplexChannel.cs
- TreeNode.cs
- LessThan.cs
- HttpCachePolicyElement.cs
- EnvironmentPermission.cs
- DataViewManager.cs
- DataTableCollection.cs
- FontTypeConverter.cs
- ToolStripPanelRow.cs
- WsdlBuildProvider.cs
- WeakReferenceKey.cs
- SettingsBindableAttribute.cs
- PointCollection.cs
- TextRange.cs
- PropertyGeneratedEventArgs.cs
- _AcceptOverlappedAsyncResult.cs
- SecUtil.cs
- DataError.cs
- CounterCreationData.cs
- ResourceSet.cs
- DrawingBrush.cs
- PointF.cs
- Walker.cs
- ProvidersHelper.cs
- IHttpResponseInternal.cs
- AlternateView.cs
- ContentTextAutomationPeer.cs
- XmlSchemaFacet.cs
- WebUtil.cs
- SimpleWorkerRequest.cs
- BevelBitmapEffect.cs
- ArgumentException.cs
- NonBatchDirectoryCompiler.cs
- TextEditorCharacters.cs
- WebRequest.cs
- SignedInfo.cs
- SqlFileStream.cs
- InputScope.cs
- JournalEntryListConverter.cs
- EntityDataSourceUtil.cs
- BindableTemplateBuilder.cs
- ToolStripContainerActionList.cs
- PathNode.cs