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
- TypeUtil.cs
- MenuTracker.cs
- TextContainerHelper.cs
- KeyProperty.cs
- FilteredReadOnlyMetadataCollection.cs
- MsmqInputMessagePool.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- ColumnPropertiesGroup.cs
- OleDbConnection.cs
- FixedFlowMap.cs
- QilTernary.cs
- TypeGeneratedEventArgs.cs
- DataSourceProvider.cs
- CrossAppDomainChannel.cs
- HTMLTagNameToTypeMapper.cs
- ConfigXmlText.cs
- SatelliteContractVersionAttribute.cs
- xmlglyphRunInfo.cs
- RangeValidator.cs
- WeakEventTable.cs
- TransformerInfoCollection.cs
- ListItemConverter.cs
- NullExtension.cs
- InfoCardArgumentException.cs
- RegexCompiler.cs
- RetrieveVirtualItemEventArgs.cs
- log.cs
- EventlogProvider.cs
- ScrollBar.cs
- OleDbRowUpdatingEvent.cs
- XmlTextWriter.cs
- HttpDictionary.cs
- ViewEventArgs.cs
- Flowchart.cs
- NotifyIcon.cs
- RtfControls.cs
- CapabilitiesAssignment.cs
- TypedDatasetGenerator.cs
- ContainerTracking.cs
- ZipIOExtraFieldZip64Element.cs
- GridViewPageEventArgs.cs
- TransportContext.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- odbcmetadatacollectionnames.cs
- CharacterHit.cs
- XmlMtomReader.cs
- HostedHttpTransportManager.cs
- EditorZone.cs
- HTTP_SERVICE_CONFIG_URLACL_KEY.cs
- XmlBufferReader.cs
- HwndTarget.cs
- DocumentProperties.cs
- LowerCaseStringConverter.cs
- ViewManager.cs
- SortableBindingList.cs
- PropertyChangeTracker.cs
- ProfilePropertyNameValidator.cs
- TraceSection.cs
- RbTree.cs
- SystemSounds.cs
- DefaultValidator.cs
- ReflectionUtil.cs
- ParsedAttributeCollection.cs
- ToolStripLocationCancelEventArgs.cs
- GPPOINT.cs
- DelimitedListTraceListener.cs
- ArraySortHelper.cs
- XmlSchemaAnnotation.cs
- AsyncStreamReader.cs
- ArgumentException.cs
- AspCompat.cs
- ComplexPropertyEntry.cs
- Soap11ServerProtocol.cs
- RegexWorker.cs
- RelationshipEndCollection.cs
- Tag.cs
- ThreadStartException.cs
- DataGridViewCellStyle.cs
- XmlDocumentFragment.cs
- PolicyManager.cs
- AuthenticodeSignatureInformation.cs
- ListManagerBindingsCollection.cs
- DataGridViewCellCancelEventArgs.cs
- TextLineBreak.cs
- BodyGlyph.cs
- HwndPanningFeedback.cs
- PriorityQueue.cs
- WaveHeader.cs
- Section.cs
- ClientTarget.cs
- PathSegment.cs
- ContentType.cs
- EventDescriptorCollection.cs
- StringDictionary.cs
- OdbcHandle.cs
- MSHTMLHost.cs
- _BufferOffsetSize.cs
- MethodToken.cs
- Logging.cs
- SchemaLookupTable.cs