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
- SafeFileHandle.cs
- ComplexType.cs
- SqlResolver.cs
- TextClipboardData.cs
- CompilerHelpers.cs
- NullExtension.cs
- _FtpControlStream.cs
- ArgumentsParser.cs
- WindowsGraphicsCacheManager.cs
- ProxyWebPart.cs
- SoapTypeAttribute.cs
- ResourcePool.cs
- XamlToRtfWriter.cs
- TraceXPathNavigator.cs
- StylusButtonCollection.cs
- Focus.cs
- TdsParserSafeHandles.cs
- RootBrowserWindowAutomationPeer.cs
- UnknownBitmapEncoder.cs
- MaterialGroup.cs
- ColorContext.cs
- COSERVERINFO.cs
- PkcsMisc.cs
- XmlSchemaIdentityConstraint.cs
- DynamicPropertyReader.cs
- DefaultWorkflowLoaderService.cs
- Lock.cs
- DataControlCommands.cs
- InstancePersistenceException.cs
- DataServiceHostFactory.cs
- DbUpdateCommandTree.cs
- RawKeyboardInputReport.cs
- CharacterMetrics.cs
- ArrayElementGridEntry.cs
- FormatSettings.cs
- ParameterSubsegment.cs
- DynamicVirtualDiscoSearcher.cs
- WrapPanel.cs
- IconConverter.cs
- Cursors.cs
- UTF7Encoding.cs
- DataGridItemEventArgs.cs
- WebPartZoneDesigner.cs
- DateTimePicker.cs
- AnimatedTypeHelpers.cs
- XmlNodeChangedEventArgs.cs
- FileLoadException.cs
- CreateUserErrorEventArgs.cs
- BypassElement.cs
- BitmapImage.cs
- Guid.cs
- __ComObject.cs
- ConstraintCollection.cs
- HierarchicalDataBoundControlAdapter.cs
- DynamicFilterExpression.cs
- XmlSchemaSimpleContent.cs
- Module.cs
- Char.cs
- DoubleLink.cs
- DataList.cs
- LambdaCompiler.Expressions.cs
- GlyphRunDrawing.cs
- BaseDataBoundControl.cs
- MediaTimeline.cs
- DataGridViewCellFormattingEventArgs.cs
- _AutoWebProxyScriptEngine.cs
- Animatable.cs
- Control.cs
- ViewLoader.cs
- FieldTemplateUserControl.cs
- PageContentAsyncResult.cs
- ControlBindingsCollection.cs
- TreeNodeStyleCollectionEditor.cs
- StyleModeStack.cs
- SkinIDTypeConverter.cs
- SerializableAttribute.cs
- SecurityPermission.cs
- XMLSyntaxException.cs
- SymLanguageVendor.cs
- cookie.cs
- ErrorFormatter.cs
- SatelliteContractVersionAttribute.cs
- XslTransform.cs
- ManagementScope.cs
- TagMapCollection.cs
- GrammarBuilder.cs
- ConstNode.cs
- MouseBinding.cs
- WindowsStartMenu.cs
- TextTreeInsertUndoUnit.cs
- PtsPage.cs
- FileDialogCustomPlaces.cs
- FixedSOMTable.cs
- TraceUtils.cs
- AmbientLight.cs
- SmtpTransport.cs
- RightsManagementEncryptedStream.cs
- TypeSystem.cs
- BindingCollection.cs
- PropertyMappingExceptionEventArgs.cs