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
- StorageRoot.cs
- WebPartRestoreVerb.cs
- AutomationTextAttribute.cs
- InvalidWMPVersionException.cs
- DataGridViewColumn.cs
- EastAsianLunisolarCalendar.cs
- ArrayElementGridEntry.cs
- SelectionChangedEventArgs.cs
- ErrorHandlerModule.cs
- CalendarItem.cs
- ErrorView.xaml.cs
- AutomationIdentifierGuids.cs
- PrinterUnitConvert.cs
- FormsAuthenticationEventArgs.cs
- UrlPath.cs
- DelayedRegex.cs
- PageThemeCodeDomTreeGenerator.cs
- MILUtilities.cs
- TextServicesHost.cs
- WebExceptionStatus.cs
- DelegatingTypeDescriptionProvider.cs
- CommandValueSerializer.cs
- XmlEncoding.cs
- SharedPerformanceCounter.cs
- DesignerDataView.cs
- InputGestureCollection.cs
- SQLUtility.cs
- HyperLinkColumn.cs
- COM2PropertyDescriptor.cs
- ResourceContainer.cs
- ObjectItemCollection.cs
- SmtpLoginAuthenticationModule.cs
- PixelFormats.cs
- SessionSwitchEventArgs.cs
- oledbmetadatacolumnnames.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- LOSFormatter.cs
- AnnotationAdorner.cs
- InsufficientMemoryException.cs
- TextBoxBase.cs
- TypeDelegator.cs
- RenderTargetBitmap.cs
- DefaultBindingPropertyAttribute.cs
- RepeaterDesigner.cs
- DataGridCellItemAutomationPeer.cs
- LicenseManager.cs
- XNodeNavigator.cs
- WebServiceErrorEvent.cs
- IsolationInterop.cs
- XmlSchemaException.cs
- TextServicesCompartment.cs
- PrimitiveDataContract.cs
- RtfToXamlReader.cs
- KoreanCalendar.cs
- TrackingRecord.cs
- SystemPens.cs
- NetMsmqBindingElement.cs
- DSASignatureFormatter.cs
- BasicAsyncResult.cs
- AsyncCompletedEventArgs.cs
- HashCryptoHandle.cs
- IISMapPath.cs
- CompiledQueryCacheKey.cs
- TextEncodedRawTextWriter.cs
- ObjectMemberMapping.cs
- NamespaceInfo.cs
- AtomEntry.cs
- ColorBlend.cs
- odbcmetadatafactory.cs
- XMLUtil.cs
- TransactionsSectionGroup.cs
- ExpressionBuilderContext.cs
- DataTemplate.cs
- BlockUIContainer.cs
- DbDataRecord.cs
- SamlSubject.cs
- AccessDataSourceView.cs
- CodeNamespace.cs
- TemplatedWizardStep.cs
- MimeTypeAttribute.cs
- ValidatedControlConverter.cs
- NamespaceCollection.cs
- Image.cs
- CheckBox.cs
- WMICapabilities.cs
- WorkflowRuntimeService.cs
- XomlCompilerResults.cs
- ColumnHeader.cs
- FontSource.cs
- ExpressionParser.cs
- NeutralResourcesLanguageAttribute.cs
- ActivityCodeDomSerializer.cs
- MessageQueue.cs
- ScrollBarRenderer.cs
- BitmapEffectCollection.cs
- TrackingLocation.cs
- SafeNativeMethods.cs
- DefaultValueAttribute.cs
- EventProviderWriter.cs
- SynthesizerStateChangedEventArgs.cs