Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- WebSysDescriptionAttribute.cs
- CLRBindingWorker.cs
- WindowsListViewItemStartMenu.cs
- CookielessHelper.cs
- UriTemplateVariableQueryValue.cs
- ExpressionBindings.cs
- ViewLoader.cs
- WebPartAuthorizationEventArgs.cs
- ManagementObjectSearcher.cs
- ExpressionWriter.cs
- ObjectResult.cs
- MarkupWriter.cs
- PropertyKey.cs
- FileDialog.cs
- BinaryWriter.cs
- SafeNativeMemoryHandle.cs
- MatrixUtil.cs
- CodeIdentifier.cs
- LinqDataSourceContextEventArgs.cs
- EventArgs.cs
- Delay.cs
- OutputCacheSection.cs
- DispatcherExceptionEventArgs.cs
- Int32Animation.cs
- OdbcErrorCollection.cs
- ConfigurationManager.cs
- DatatypeImplementation.cs
- SettingsAttributeDictionary.cs
- ToolStripContainer.cs
- StorageAssociationSetMapping.cs
- MetadataUtil.cs
- UntrustedRecipientException.cs
- BitmapEffectInput.cs
- ErrorTableItemStyle.cs
- GetTokenRequest.cs
- PlatformNotSupportedException.cs
- WebRequestModuleElement.cs
- ModelPerspective.cs
- _SslState.cs
- ApplicationManager.cs
- MediaTimeline.cs
- WebPartCancelEventArgs.cs
- SoapAttributeAttribute.cs
- ISCIIEncoding.cs
- DefaultMemberAttribute.cs
- FusionWrap.cs
- HttpValueCollection.cs
- TraceHwndHost.cs
- Converter.cs
- ContextInformation.cs
- GridViewItemAutomationPeer.cs
- SettingsPropertyCollection.cs
- SQLBytesStorage.cs
- ModuleConfigurationInfo.cs
- ErrorRuntimeConfig.cs
- BindingMAnagerBase.cs
- MessageSecurityOverMsmqElement.cs
- SpnegoTokenProvider.cs
- ExpressionBuilderContext.cs
- EventLogPermissionEntry.cs
- ContentDesigner.cs
- DocComment.cs
- UIHelper.cs
- GridItem.cs
- PromptStyle.cs
- FontStretchConverter.cs
- HoistedLocals.cs
- Quad.cs
- PathFigure.cs
- WebPartVerbCollection.cs
- Light.cs
- EventHandlingScope.cs
- SetterBase.cs
- ProfileSection.cs
- TextAnchor.cs
- ActivatableWorkflowsQueryResult.cs
- StringInfo.cs
- TextBoxAutomationPeer.cs
- ClientBuildManager.cs
- StaticContext.cs
- CqlQuery.cs
- DataGridrowEditEndingEventArgs.cs
- BitmapPalette.cs
- XmlSchemaAppInfo.cs
- ThemeableAttribute.cs
- SqlDataSourceEnumerator.cs
- OleDbWrapper.cs
- HttpRequestWrapper.cs
- ObjectIDGenerator.cs
- If.cs
- TimeSpanOrInfiniteValidator.cs
- AssemblyHash.cs
- LocalizationParserHooks.cs
- HotCommands.cs
- IconConverter.cs
- DefaultBinder.cs
- AssemblyBuilder.cs
- UntrustedRecipientException.cs
- RtfToXamlLexer.cs
- StyleXamlParser.cs