Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / 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 [....] // //----------------------------------------------------------------------- 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. //------------------------------------------------------------------------ // // 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 [....] // //----------------------------------------------------------------------- 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UIAgentAsyncEndRequest.cs
- TextServicesCompartmentContext.cs
- QilParameter.cs
- SourceItem.cs
- ScriptRef.cs
- CompleteWizardStep.cs
- XmlArrayItemAttributes.cs
- ComponentEditorPage.cs
- ReflectionHelper.cs
- EntryPointNotFoundException.cs
- ValidatedControlConverter.cs
- EmptyCollection.cs
- ParagraphVisual.cs
- FormatException.cs
- _OSSOCK.cs
- ProcessHostMapPath.cs
- LinearGradientBrush.cs
- IsolationInterop.cs
- ToolZone.cs
- SendKeys.cs
- TypedTableBaseExtensions.cs
- DesignerAutoFormatCollection.cs
- CellPartitioner.cs
- CharEntityEncoderFallback.cs
- ReversePositionQuery.cs
- securestring.cs
- ChannelRequirements.cs
- OptimizerPatterns.cs
- MailFileEditor.cs
- CodeTypeReferenceCollection.cs
- XmlQuerySequence.cs
- TextRunTypographyProperties.cs
- SemanticValue.cs
- HighContrastHelper.cs
- OptimalTextSource.cs
- safex509handles.cs
- SspiNegotiationTokenAuthenticator.cs
- TrackPoint.cs
- SizeLimitedCache.cs
- CommandBinding.cs
- ReversePositionQuery.cs
- AddValidationError.cs
- SyndicationFeedFormatter.cs
- EntityViewGenerator.cs
- Rotation3D.cs
- StructuredType.cs
- WebSysDisplayNameAttribute.cs
- CompositeTypefaceMetrics.cs
- Vector3D.cs
- HtmlForm.cs
- BaseTreeIterator.cs
- SqlDataSourceCustomCommandEditor.cs
- LocationFactory.cs
- CroppedBitmap.cs
- StylusShape.cs
- XmlBaseWriter.cs
- DebugInfoExpression.cs
- parserscommon.cs
- WindowsSlider.cs
- TypeTypeConverter.cs
- Pair.cs
- Camera.cs
- ScriptComponentDescriptor.cs
- DataGridItem.cs
- ConfigurationCollectionAttribute.cs
- OracleBoolean.cs
- DataGridViewComboBoxColumn.cs
- WebScriptMetadataInstanceContextProvider.cs
- EventBuilder.cs
- NavigationHelper.cs
- SqlDataSourceCommandParser.cs
- control.ime.cs
- ConnectionInterfaceCollection.cs
- DynamicRenderer.cs
- ValidatorCollection.cs
- WebServiceErrorEvent.cs
- DataSourceGeneratorException.cs
- ActivityStateQuery.cs
- WorkflowItemPresenter.cs
- DBSchemaTable.cs
- PropertyEmitterBase.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- DataGridViewMethods.cs
- _SSPIWrapper.cs
- Base64Stream.cs
- IdentityHolder.cs
- DisplayNameAttribute.cs
- RelationshipConstraintValidator.cs
- SHA1Cng.cs
- HttpResponseInternalBase.cs
- BaseCodeDomTreeGenerator.cs
- TextEditorSelection.cs
- Figure.cs
- EDesignUtil.cs
- OutputCacheSection.cs
- NullableLongAverageAggregationOperator.cs
- TransformerTypeCollection.cs
- FixedSOMTextRun.cs
- DataGridViewCellStyleChangedEventArgs.cs
- WeakReferenceList.cs