Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ImpersonateTokenRef.cs
- MetadataCollection.cs
- WindowsTokenRoleProvider.cs
- CompareValidator.cs
- Suspend.cs
- DispatcherEventArgs.cs
- XamlInt32CollectionSerializer.cs
- LinqDataSourceContextData.cs
- SystemShuttingDownException.cs
- ReferencedType.cs
- LZCodec.cs
- ISAPIRuntime.cs
- SimpleApplicationHost.cs
- TryCatchDesigner.xaml.cs
- DirectionalLight.cs
- ParserExtension.cs
- DataGridCellsPresenter.cs
- SchemaAttDef.cs
- RenderData.cs
- UnsafeNativeMethods.cs
- PropertyGrid.cs
- DetailsViewPagerRow.cs
- SiteMap.cs
- wgx_commands.cs
- RepeaterItemEventArgs.cs
- StaticExtensionConverter.cs
- IdentifierService.cs
- ServiceDebugBehavior.cs
- CodeLabeledStatement.cs
- hwndwrapper.cs
- HandleRef.cs
- Vector.cs
- DeflateStreamAsyncResult.cs
- MultipartContentParser.cs
- HttpContextWrapper.cs
- LinkTarget.cs
- BinaryObjectInfo.cs
- TriState.cs
- httpstaticobjectscollection.cs
- CurrentChangingEventManager.cs
- BaseTemplateCodeDomTreeGenerator.cs
- Int32RectConverter.cs
- ContentControl.cs
- StructuredType.cs
- CustomCategoryAttribute.cs
- WebPartsPersonalization.cs
- TextCollapsingProperties.cs
- SpeakCompletedEventArgs.cs
- HttpProfileGroupBase.cs
- TreeWalker.cs
- OdbcDataReader.cs
- HttpCapabilitiesBase.cs
- Scripts.cs
- DocumentGridContextMenu.cs
- AssemblyHash.cs
- InputScopeAttribute.cs
- LineSegment.cs
- PipeSecurity.cs
- CatalogZoneBase.cs
- Label.cs
- DoubleLinkListEnumerator.cs
- StringKeyFrameCollection.cs
- MultiBindingExpression.cs
- ParseElement.cs
- CalloutQueueItem.cs
- PropertyTabChangedEvent.cs
- ControlCollection.cs
- Schema.cs
- ResourceDefaultValueAttribute.cs
- WebConfigurationHost.cs
- FixedSOMSemanticBox.cs
- RSACryptoServiceProvider.cs
- WebContext.cs
- DefaultBinder.cs
- ItemAutomationPeer.cs
- LoopExpression.cs
- XmlSchemaValidator.cs
- DnsPermission.cs
- SqlGatherProducedAliases.cs
- ProjectionPruner.cs
- ElementAtQueryOperator.cs
- MetadataHelper.cs
- SelectedCellsChangedEventArgs.cs
- QueryExpression.cs
- TableAutomationPeer.cs
- HighlightComponent.cs
- ParentUndoUnit.cs
- ParameterToken.cs
- ObjectViewQueryResultData.cs
- FacetChecker.cs
- HttpWriter.cs
- OracleSqlParser.cs
- CollectionConverter.cs
- BackStopAuthenticationModule.cs
- SystemFonts.cs
- ITreeGenerator.cs
- UInt32Converter.cs
- COAUTHINFO.cs
- BasicBrowserDialog.designer.cs
- AxParameterData.cs