Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / Design / ParenthesizePropertyNameAttribute.cs / 1 / ParenthesizePropertyNameAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel { using System; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.All)] public sealed class ParenthesizePropertyNameAttribute : Attribute { ///Provides a value indicating whether the name of the associated property is parenthesized in the /// properties window. ////// public static readonly ParenthesizePropertyNameAttribute Default = new ParenthesizePropertyNameAttribute(); private bool needParenthesis; ////// Sets the System.ComponentModel.Design.ParenthesizePropertyName /// attribute by default to /// ///. /// /// public ParenthesizePropertyNameAttribute() : this(false) { } ///[To be supplied.] ////// public ParenthesizePropertyNameAttribute(bool needParenthesis) { this.needParenthesis = needParenthesis; } ///Initializes a new instance of the System.ComponentModel.Design.ParenthesizePropertyNameAttribute /// class, using the specified value to indicate whether the attribute is /// marked for display with parentheses. ////// public bool NeedParenthesis { get { return needParenthesis; } } ////// Gets a value indicating /// whether the /// attribute is placed in parentheses when listed in /// the properties window. /// ////// public override bool Equals(object o) { if (o is ParenthesizePropertyNameAttribute) { return ((ParenthesizePropertyNameAttribute)o).NeedParenthesis == needParenthesis; } return false; } ///Compares the specified object /// to this object and tests for equality. ////// public override int GetHashCode() { return base.GetHashCode(); } ////// Returns the hashcode for this object. /// ////// public override bool IsDefaultAttribute() { return this.Equals(Default); } } }Gets a value indicating whether this attribute is set to ///by default.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SchemaConstraints.cs
- ServiceEndpointCollection.cs
- unitconverter.cs
- IncrementalHitTester.cs
- MetadataImporterQuotas.cs
- EventSourceCreationData.cs
- CodeCastExpression.cs
- HierarchicalDataBoundControlAdapter.cs
- RelationshipConverter.cs
- UIAgentAsyncBeginRequest.cs
- MenuItem.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- DesignerSelectionListAdapter.cs
- WindowsRichEdit.cs
- RegisteredDisposeScript.cs
- AssemblyCacheEntry.cs
- TabControlAutomationPeer.cs
- EventQueueState.cs
- SqlLiftWhereClauses.cs
- WebServiceHostFactory.cs
- WmpBitmapEncoder.cs
- CompensationDesigner.cs
- DependencyProperty.cs
- NumberSubstitution.cs
- ConnectionPointGlyph.cs
- NameTable.cs
- DataStorage.cs
- Clock.cs
- RewritingProcessor.cs
- ValidationSummary.cs
- ZipIOExtraFieldZip64Element.cs
- MissingManifestResourceException.cs
- ArgumentOutOfRangeException.cs
- DataGridViewCellValidatingEventArgs.cs
- Inline.cs
- WebPartZoneDesigner.cs
- ImportCatalogPart.cs
- GridItemProviderWrapper.cs
- PointConverter.cs
- ExtensionWindowHeader.cs
- DataGridItem.cs
- Image.cs
- PropertyStore.cs
- SerializationHelper.cs
- GridViewEditEventArgs.cs
- SpellerHighlightLayer.cs
- WebPartPersonalization.cs
- ObjectDataProvider.cs
- DirectionalLight.cs
- ListViewContainer.cs
- RightsManagementEncryptedStream.cs
- SizeAnimationClockResource.cs
- ToolbarAUtomationPeer.cs
- RemotingServices.cs
- SystemWebCachingSectionGroup.cs
- XmlWrappingReader.cs
- ListViewGroupConverter.cs
- HyperLinkField.cs
- ContextMenuStripActionList.cs
- XmlFileEditor.cs
- IgnoreFlushAndCloseStream.cs
- loginstatus.cs
- ColorConvertedBitmap.cs
- COM2ColorConverter.cs
- RegexCapture.cs
- ClientType.cs
- DecimalStorage.cs
- MetadataUtil.cs
- CustomError.cs
- ServiceDeploymentInfo.cs
- NativeCppClassAttribute.cs
- DynamicActivityProperty.cs
- HtmlLinkAdapter.cs
- MimeMultiPart.cs
- TitleStyle.cs
- QueryStringConverter.cs
- Atom10FormatterFactory.cs
- HtmlControl.cs
- LayoutEvent.cs
- NativeMethods.cs
- SortQueryOperator.cs
- CodeVariableReferenceExpression.cs
- DataControlField.cs
- ParserOptions.cs
- SystemColors.cs
- SqlServices.cs
- DataContractSerializerOperationFormatter.cs
- BufferModesCollection.cs
- xsdvalidator.cs
- MDIClient.cs
- TrustLevel.cs
- LassoSelectionBehavior.cs
- ConstrainedGroup.cs
- DrawingAttributes.cs
- compensatingcollection.cs
- EntityCommandCompilationException.cs
- XsdBuilder.cs
- ImageFormat.cs
- WizardForm.cs
- AuthenticationManager.cs