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
- FileLogRecordHeader.cs
- HistoryEventArgs.cs
- ToolStripOverflowButton.cs
- IsolationInterop.cs
- DatagridviewDisplayedBandsData.cs
- httpserverutility.cs
- OleDbStruct.cs
- XmlSchemaSimpleType.cs
- NotFiniteNumberException.cs
- CngKeyCreationParameters.cs
- ExceptionHelpers.cs
- TraceHandler.cs
- RC2CryptoServiceProvider.cs
- Win32PrintDialog.cs
- RootBrowserWindowProxy.cs
- KeyboardNavigation.cs
- xsdvalidator.cs
- WebReferenceCollection.cs
- isolationinterop.cs
- FileDetails.cs
- hwndwrapper.cs
- DateTimeFormatInfoScanner.cs
- ObjectItemCachedAssemblyLoader.cs
- SqlBooleanizer.cs
- ScalarOps.cs
- IndexOutOfRangeException.cs
- ResXResourceSet.cs
- XhtmlBasicTextViewAdapter.cs
- XmlNode.cs
- DocumentXPathNavigator.cs
- DataGridColumnStyleMappingNameEditor.cs
- RelOps.cs
- RouteItem.cs
- Baml2006ReaderFrame.cs
- TransformGroup.cs
- SizeAnimation.cs
- ApplicationBuildProvider.cs
- Itemizer.cs
- _ProxyRegBlob.cs
- PointLightBase.cs
- ModelService.cs
- DetailsViewAutoFormat.cs
- ObjectToken.cs
- PrimitiveXmlSerializers.cs
- ServiceProviders.cs
- XXXInfos.cs
- SystemWebExtensionsSectionGroup.cs
- TreeNodeCollection.cs
- NavigatorOutput.cs
- Knowncolors.cs
- loginstatus.cs
- GridPatternIdentifiers.cs
- DataColumnMappingCollection.cs
- WebScriptEnablingElement.cs
- GeneralTransform3DCollection.cs
- ColorConvertedBitmap.cs
- WebRequestModuleElementCollection.cs
- ConnectionManagementElementCollection.cs
- XmlTypeMapping.cs
- TextEditorCopyPaste.cs
- Rect.cs
- FloaterBaseParaClient.cs
- OleDbDataAdapter.cs
- UserNamePasswordClientCredential.cs
- FileInfo.cs
- FunctionNode.cs
- StylusCollection.cs
- TextServicesLoader.cs
- XmlChildEnumerator.cs
- ProviderSettings.cs
- Duration.cs
- AppModelKnownContentFactory.cs
- WebPartMenuStyle.cs
- IndexedGlyphRun.cs
- CodeObjectCreateExpression.cs
- CheckBoxDesigner.cs
- KoreanLunisolarCalendar.cs
- DataSourceXmlAttributeAttribute.cs
- IPAddressCollection.cs
- NameValueFileSectionHandler.cs
- Condition.cs
- OperationResponse.cs
- FrameworkElement.cs
- TableRowCollection.cs
- XsltContext.cs
- Focus.cs
- TypeConverterHelper.cs
- OleDbEnumerator.cs
- PointAnimationUsingKeyFrames.cs
- UriTemplate.cs
- AggregateException.cs
- DataGridColumn.cs
- DataSourceControl.cs
- ActivitySurrogate.cs
- CodeSnippetExpression.cs
- UIElementCollection.cs
- RunWorkerCompletedEventArgs.cs
- WindowsGraphicsWrapper.cs
- Stylus.cs
- TargetPerspective.cs