Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Base / System / Windows / Markup / ConstructorArgumentAttribute.cs / 1 / ConstructorArgumentAttribute.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2005 // // File: ConstructorArgumentAttribute.cs // // Contents: An attribute to declare that this property can be // initialized using the classes constructor of the name // provided. // // Created: 05/06/2005 [....] // //----------------------------------------------------------------------- using System; namespace System.Windows.Markup { ////// Attribute to declare that this associated property can be initialized by a /// constructor parameter and should be ignored for serialization if the constructor /// with an argument of the supplied name is used to construct the instance. /// [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = false)] public sealed class ConstructorArgumentAttribute : Attribute { ////// Constructor for an ConstructorArgumentAttribute /// /// Name of the constructor argument that will initialize this property public ConstructorArgumentAttribute(string argumentName) { _argumentName = argumentName; } ////// Name of the constructor argument that will initialize this property /// public string ArgumentName { get { return _argumentName; } } private string _argumentName; } } // 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: ConstructorArgumentAttribute.cs // // Contents: An attribute to declare that this property can be // initialized using the classes constructor of the name // provided. // // Created: 05/06/2005 [....] // //----------------------------------------------------------------------- using System; namespace System.Windows.Markup { ////// Attribute to declare that this associated property can be initialized by a /// constructor parameter and should be ignored for serialization if the constructor /// with an argument of the supplied name is used to construct the instance. /// [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = false)] public sealed class ConstructorArgumentAttribute : Attribute { ////// Constructor for an ConstructorArgumentAttribute /// /// Name of the constructor argument that will initialize this property public ConstructorArgumentAttribute(string argumentName) { _argumentName = argumentName; } ////// Name of the constructor argument that will initialize this property /// public string ArgumentName { get { return _argumentName; } } private string _argumentName; } } // 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
- AuthenticationManager.cs
- ListBindingHelper.cs
- JavaScriptSerializer.cs
- PermissionAttributes.cs
- TreeViewHitTestInfo.cs
- SqlXmlStorage.cs
- PropertySet.cs
- Cell.cs
- Script.cs
- IPAddressCollection.cs
- XsltLibrary.cs
- PropagatorResult.cs
- Scalars.cs
- SmtpException.cs
- AcceleratedTokenProvider.cs
- DbMetaDataFactory.cs
- Vector3DIndependentAnimationStorage.cs
- COM2ComponentEditor.cs
- WinOEToolBoxItem.cs
- WebHostedComPlusServiceHost.cs
- MissingMemberException.cs
- RulePatternOps.cs
- TextRangeAdaptor.cs
- RubberbandSelector.cs
- EasingKeyFrames.cs
- BindingContext.cs
- FileLogRecord.cs
- StringUtil.cs
- DataGridViewButtonCell.cs
- TargetControlTypeCache.cs
- PasswordTextNavigator.cs
- GlobalProxySelection.cs
- PropertySet.cs
- BezierSegment.cs
- FixedTextContainer.cs
- AssemblySettingAttributes.cs
- CompilationSection.cs
- Intellisense.cs
- ThreadStaticAttribute.cs
- BookmarkResumptionRecord.cs
- ConnectionString.cs
- DataServiceConfiguration.cs
- AsyncContentLoadedEventArgs.cs
- TransformPatternIdentifiers.cs
- ListItemConverter.cs
- StateManagedCollection.cs
- ImageMapEventArgs.cs
- Debug.cs
- WmfPlaceableFileHeader.cs
- UserNameSecurityTokenAuthenticator.cs
- Int32AnimationBase.cs
- Blend.cs
- SqlWriter.cs
- XmlHierarchicalEnumerable.cs
- ApplicationGesture.cs
- TemplateControlParser.cs
- EncryptedData.cs
- MarshalByValueComponent.cs
- CancelEventArgs.cs
- SoapExtensionReflector.cs
- ZoomPercentageConverter.cs
- ItemsChangedEventArgs.cs
- SingleStorage.cs
- TokenCreationException.cs
- ReadOnlyNameValueCollection.cs
- SiteOfOriginPart.cs
- TextTreeRootTextBlock.cs
- InstalledFontCollection.cs
- ShadowGlyph.cs
- BindingManagerDataErrorEventArgs.cs
- ColumnMapCopier.cs
- TextRenderer.cs
- arabicshape.cs
- ActionMessageFilterTable.cs
- SymDocumentType.cs
- Restrictions.cs
- NativeMethods.cs
- SecurityMode.cs
- SystemDiagnosticsSection.cs
- ObjectDataSourceEventArgs.cs
- AppModelKnownContentFactory.cs
- LinqDataSourceContextEventArgs.cs
- AssemblySettingAttributes.cs
- PropertyDescriptor.cs
- IndependentlyAnimatedPropertyMetadata.cs
- Compilation.cs
- EntityViewGenerationConstants.cs
- ItemMap.cs
- BaseHashHelper.cs
- HttpProfileBase.cs
- RegexCapture.cs
- XmlDataLoader.cs
- TrustManager.cs
- LinqDataSourceEditData.cs
- VectorAnimationUsingKeyFrames.cs
- ValidatedMobileControlConverter.cs
- WindowPatternIdentifiers.cs
- ColumnCollection.cs
- WebPartConnection.cs
- Helpers.cs