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
- XhtmlBasicValidatorAdapter.cs
- IMembershipProvider.cs
- WindowsListViewItemCheckBox.cs
- GridViewDeletedEventArgs.cs
- RelatedImageListAttribute.cs
- AsyncOperationLifetimeManager.cs
- AspNetSynchronizationContext.cs
- ControlBuilderAttribute.cs
- SqlCacheDependency.cs
- IUnknownConstantAttribute.cs
- PointAnimationClockResource.cs
- ProfileParameter.cs
- Function.cs
- PersonalizationDictionary.cs
- HtmlControlPersistable.cs
- Visual.cs
- TabItemAutomationPeer.cs
- SecurityContext.cs
- RadioButtonFlatAdapter.cs
- FormatException.cs
- QilParameter.cs
- IPipelineRuntime.cs
- CodeDOMUtility.cs
- ConfigViewGenerator.cs
- WebServiceClientProxyGenerator.cs
- ManagementObjectCollection.cs
- SystemResourceKey.cs
- GuidConverter.cs
- ToolStripOverflow.cs
- PointLightBase.cs
- SoapAttributeOverrides.cs
- ServiceDesigner.cs
- ConditionalAttribute.cs
- SqlParameterizer.cs
- WindowsListBox.cs
- HyperLink.cs
- BrowserCapabilitiesCompiler.cs
- SegmentInfo.cs
- List.cs
- RequestDescription.cs
- HostExecutionContextManager.cs
- DisplayToken.cs
- BadImageFormatException.cs
- Missing.cs
- ValidationSummary.cs
- SystemInformation.cs
- TemplateControlParser.cs
- SecurityException.cs
- InputMethodStateChangeEventArgs.cs
- ApplicationSecurityManager.cs
- FixedSOMTableRow.cs
- AggregateNode.cs
- IDQuery.cs
- Localizer.cs
- Stack.cs
- SafeViewOfFileHandle.cs
- SqlVersion.cs
- LinqDataSource.cs
- RuleSetReference.cs
- SerializerProvider.cs
- TimelineClockCollection.cs
- LayoutEditorPart.cs
- IndentedWriter.cs
- AxisAngleRotation3D.cs
- DelegateOutArgument.cs
- KeyPressEvent.cs
- NativeCppClassAttribute.cs
- GridViewPageEventArgs.cs
- BitmapFrameEncode.cs
- PackagingUtilities.cs
- TemplateComponentConnector.cs
- ProfileEventArgs.cs
- ChtmlTextBoxAdapter.cs
- DataSourceControlBuilder.cs
- DataStreams.cs
- XmlValidatingReaderImpl.cs
- XmlSchema.cs
- DragEventArgs.cs
- ApplicationContext.cs
- MethodResolver.cs
- TransformedBitmap.cs
- LinkedResource.cs
- SqlDataSourceSelectingEventArgs.cs
- MsiStyleLogWriter.cs
- OuterGlowBitmapEffect.cs
- ListViewTableCell.cs
- _LocalDataStore.cs
- WebPartEditorCancelVerb.cs
- TypographyProperties.cs
- Identifier.cs
- Normalization.cs
- GeometryGroup.cs
- WebPartVerbsEventArgs.cs
- DataGridViewCheckBoxColumn.cs
- ThrowHelper.cs
- RegexParser.cs
- AliasedSlot.cs
- EnumUnknown.cs
- PageBreakRecord.cs
- CertificateManager.cs