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
- NonParentingControl.cs
- MsmqIntegrationSecurityMode.cs
- TraceUtils.cs
- ComponentConverter.cs
- DateBoldEvent.cs
- XmlSchemaParticle.cs
- OrthographicCamera.cs
- AlphaSortedEnumConverter.cs
- Math.cs
- ToolStripControlHost.cs
- BaseCAMarshaler.cs
- CultureSpecificCharacterBufferRange.cs
- SiblingIterators.cs
- _Win32.cs
- SqlRowUpdatingEvent.cs
- FixedBufferAttribute.cs
- PathTooLongException.cs
- ObjectDataSourceEventArgs.cs
- WaitHandleCannotBeOpenedException.cs
- DependencyPropertyConverter.cs
- GetPageCompletedEventArgs.cs
- TargetParameterCountException.cs
- SoundPlayer.cs
- SizeKeyFrameCollection.cs
- ManagementBaseObject.cs
- OLEDB_Util.cs
- DbReferenceCollection.cs
- ImagingCache.cs
- ScriptIgnoreAttribute.cs
- RepeaterItemEventArgs.cs
- ObjectDataSourceMethodEventArgs.cs
- SystemFonts.cs
- SystemGatewayIPAddressInformation.cs
- DesignerVerb.cs
- ConnectorRouter.cs
- PkcsUtils.cs
- RsaSecurityToken.cs
- XmlBaseWriter.cs
- FrameworkContextData.cs
- ClientSettingsSection.cs
- ServiceModelPerformanceCounters.cs
- ConnectionPoint.cs
- MailMessageEventArgs.cs
- WebPartTransformerAttribute.cs
- XmlUrlEditor.cs
- ControlIdConverter.cs
- ProcessHostFactoryHelper.cs
- DodSequenceMerge.cs
- Int64Converter.cs
- EnumCodeDomSerializer.cs
- BamlLocalizableResource.cs
- CodeNamespaceImport.cs
- DataColumn.cs
- PageSettings.cs
- Column.cs
- ReaderWriterLock.cs
- DataGridViewTextBoxEditingControl.cs
- InputScopeConverter.cs
- EntityConnection.cs
- TextSelectionProcessor.cs
- LambdaCompiler.cs
- RouteItem.cs
- ZipIOCentralDirectoryBlock.cs
- ExecutorLocksHeldException.cs
- SEHException.cs
- RawStylusInputReport.cs
- PrePostDescendentsWalker.cs
- SqlDesignerDataSourceView.cs
- SharedStream.cs
- MethodBody.cs
- MexHttpsBindingElement.cs
- PartitionResolver.cs
- ExpandoObject.cs
- MouseActionValueSerializer.cs
- ArcSegment.cs
- WindowsScrollBarBits.cs
- DataGridItem.cs
- Hashtable.cs
- RSAPKCS1SignatureFormatter.cs
- ConfigurationStrings.cs
- COM2PictureConverter.cs
- SerializationSectionGroup.cs
- AdapterSwitches.cs
- Transform3DGroup.cs
- TextLineBreak.cs
- RegexCode.cs
- UriExt.cs
- OracleParameterBinding.cs
- WebHttpBinding.cs
- HtmlTableRow.cs
- SQLGuidStorage.cs
- TypeToken.cs
- XmlSerializerNamespaces.cs
- InputProcessorProfiles.cs
- WizardPanel.cs
- PathSegment.cs
- ArgumentException.cs
- SymbolTable.cs
- ContextMenuAutomationPeer.cs
- ContextQuery.cs