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
- HwndTarget.cs
- FixedFlowMap.cs
- EntityDataSourceQueryBuilder.cs
- MemberProjectedSlot.cs
- RowBinding.cs
- PolyLineSegment.cs
- PageCodeDomTreeGenerator.cs
- DataFieldEditor.cs
- DataGridViewCellCollection.cs
- HeaderedContentControl.cs
- WindowsIdentity.cs
- TimeStampChecker.cs
- DataGridViewTopRowAccessibleObject.cs
- dtdvalidator.cs
- Lasso.cs
- BindingMAnagerBase.cs
- ManagementExtension.cs
- PointAnimationBase.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- AssemblyHelper.cs
- EncoderReplacementFallback.cs
- SmtpDigestAuthenticationModule.cs
- AnalyzedTree.cs
- DataServiceCollectionOfT.cs
- CacheEntry.cs
- SchemaSetCompiler.cs
- PromptStyle.cs
- MaskedTextBoxDesigner.cs
- WebPartDisplayModeCollection.cs
- SpecularMaterial.cs
- HandlerBase.cs
- CharAnimationUsingKeyFrames.cs
- TransformationRules.cs
- SchemaType.cs
- ContourSegment.cs
- SecurityPolicyVersion.cs
- MarkupCompilePass2.cs
- Button.cs
- DataGridViewCellCollection.cs
- Group.cs
- MembershipUser.cs
- DesignerAutoFormatStyle.cs
- TimeSpanValidatorAttribute.cs
- DictionaryBase.cs
- HandlerWithFactory.cs
- CodeArrayCreateExpression.cs
- TCPClient.cs
- TextHidden.cs
- InputBinder.cs
- ToolStripSeparatorRenderEventArgs.cs
- SafeLibraryHandle.cs
- cookie.cs
- CompiledQuery.cs
- TextParagraphCache.cs
- HttpRuntimeSection.cs
- RichTextBoxAutomationPeer.cs
- _emptywebproxy.cs
- mediaeventargs.cs
- odbcmetadatacollectionnames.cs
- UserControl.cs
- DataGridViewSelectedColumnCollection.cs
- TextTrailingWordEllipsis.cs
- SqlDesignerDataSourceView.cs
- WindowsEditBox.cs
- ELinqQueryState.cs
- X509ChainPolicy.cs
- PropertySourceInfo.cs
- OneOfScalarConst.cs
- InternalConfigHost.cs
- PagerSettings.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- SQLConvert.cs
- DesignerVerbCollection.cs
- JavaScriptString.cs
- DeobfuscatingStream.cs
- SolidBrush.cs
- DateTimeOffsetAdapter.cs
- BrowserCapabilitiesFactoryBase.cs
- Label.cs
- CodeTypeDelegate.cs
- Exceptions.cs
- CheckoutException.cs
- IndependentAnimationStorage.cs
- PerSessionInstanceContextProvider.cs
- MulticastNotSupportedException.cs
- TrailingSpaceComparer.cs
- FormViewInsertEventArgs.cs
- DataGridCellsPanel.cs
- Point3D.cs
- MarkupObject.cs
- CollectionViewProxy.cs
- XsdCachingReader.cs
- Point3DValueSerializer.cs
- HttpListenerContext.cs
- MetadataItemEmitter.cs
- OptimisticConcurrencyException.cs
- VerticalAlignConverter.cs
- MessageDroppedTraceRecord.cs
- SmtpReplyReaderFactory.cs
- Delegate.cs