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
- BinaryMethodMessage.cs
- ThrowHelper.cs
- PassportAuthenticationEventArgs.cs
- PropertyToken.cs
- ColorTransform.cs
- SystemIcmpV4Statistics.cs
- RawStylusInputCustomData.cs
- TextServicesCompartment.cs
- ListBase.cs
- XmlSchemaExporter.cs
- DbParameterHelper.cs
- MonthChangedEventArgs.cs
- MenuItem.cs
- CmsUtils.cs
- QueryAccessibilityHelpEvent.cs
- ExecutedRoutedEventArgs.cs
- SchemaElement.cs
- GradientStop.cs
- NameObjectCollectionBase.cs
- CallbackHandler.cs
- ListChunk.cs
- MenuItemBindingCollection.cs
- XMLUtil.cs
- Sql8ExpressionRewriter.cs
- DesignerCategoryAttribute.cs
- BaseProcessor.cs
- ItemsControl.cs
- Point.cs
- WebResponse.cs
- WindowsStartMenu.cs
- OutputCacheProfile.cs
- TdsParserSafeHandles.cs
- GatewayDefinition.cs
- SamlSecurityTokenAuthenticator.cs
- AutomationPatternInfo.cs
- WorkflowControlClient.cs
- KeyedHashAlgorithm.cs
- XmlBoundElement.cs
- GenericAuthenticationEventArgs.cs
- ClientSettingsStore.cs
- CodeDomLoader.cs
- ValidationError.cs
- MbpInfo.cs
- FlowDocumentReader.cs
- PlatformNotSupportedException.cs
- Point3DAnimationUsingKeyFrames.cs
- QilReference.cs
- GeneralTransform3D.cs
- FlowThrottle.cs
- MetadataArtifactLoaderCompositeFile.cs
- DebugHandleTracker.cs
- WindowsListViewItemCheckBox.cs
- streamingZipPartStream.cs
- ContentElement.cs
- TimelineGroup.cs
- FileIOPermission.cs
- UrlParameterReader.cs
- TypeBuilderInstantiation.cs
- ProcessHostServerConfig.cs
- CharacterShapingProperties.cs
- FontInfo.cs
- RemoteAsymmetricSignatureFormatter.cs
- documentation.cs
- log.cs
- DbConnectionHelper.cs
- counter.cs
- ObjectNotFoundException.cs
- DbConnectionPoolCounters.cs
- InkCanvasInnerCanvas.cs
- FormatterServices.cs
- InputLanguageManager.cs
- BrushMappingModeValidation.cs
- BuildResult.cs
- WindowsFont.cs
- TransformGroup.cs
- DoubleCollectionConverter.cs
- SqlClientWrapperSmiStreamChars.cs
- parserscommon.cs
- RoutedEventArgs.cs
- SqlClientWrapperSmiStream.cs
- HttpApplication.cs
- CodeExporter.cs
- ErrorWebPart.cs
- OdbcCommandBuilder.cs
- ReferenceService.cs
- ImageCodecInfoPrivate.cs
- ComponentManagerBroker.cs
- Point4DValueSerializer.cs
- ActivityExecutionContext.cs
- PolyBezierSegment.cs
- PerspectiveCamera.cs
- SamlAttributeStatement.cs
- SmtpFailedRecipientsException.cs
- EventlogProvider.cs
- InstanceLockedException.cs
- SafeArchiveContext.cs
- InkCanvasSelection.cs
- SchemaRegistration.cs
- DbConnectionInternal.cs
- ObjectMemberMapping.cs