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
- GcSettings.cs
- LastQueryOperator.cs
- HelloMessageCD1.cs
- OdbcFactory.cs
- XmlAttribute.cs
- ReliableDuplexSessionChannel.cs
- NavigationWindowAutomationPeer.cs
- XmlSerializerVersionAttribute.cs
- CacheHelper.cs
- ResourceContainer.cs
- WebPartConnectionsDisconnectVerb.cs
- ValueSerializerAttribute.cs
- Rotation3D.cs
- RadioButtonPopupAdapter.cs
- LocatorPartList.cs
- SaveFileDialog.cs
- Underline.cs
- DependsOnAttribute.cs
- TextRunProperties.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- SqlDataSourceQueryEditor.cs
- Completion.cs
- WebPartDisplayModeCancelEventArgs.cs
- HttpProfileGroupBase.cs
- IDReferencePropertyAttribute.cs
- Publisher.cs
- DrawingAttributes.cs
- CacheRequest.cs
- TripleDESCryptoServiceProvider.cs
- RepeaterItemCollection.cs
- FactoryGenerator.cs
- FixedSOMLineRanges.cs
- StickyNoteAnnotations.cs
- NavigatorOutput.cs
- clipboard.cs
- LinkLabelLinkClickedEvent.cs
- TraceContextEventArgs.cs
- ImageClickEventArgs.cs
- ColorAnimationBase.cs
- BmpBitmapEncoder.cs
- BinaryCommonClasses.cs
- ADMembershipProvider.cs
- Composition.cs
- VScrollProperties.cs
- RelationshipSet.cs
- Hyperlink.cs
- ClientSideQueueItem.cs
- NavigationProgressEventArgs.cs
- PreApplicationStartMethodAttribute.cs
- EventSourceCreationData.cs
- ByeOperationAsyncResult.cs
- QilName.cs
- Win32PrintDialog.cs
- XamlParser.cs
- PropertyNames.cs
- KeySpline.cs
- altserialization.cs
- WindowsListView.cs
- BehaviorEditorPart.cs
- WinFormsUtils.cs
- Pointer.cs
- StreamGeometry.cs
- TextEditorCopyPaste.cs
- SortedList.cs
- WebServiceHost.cs
- ConnectionManagementElementCollection.cs
- QilXmlReader.cs
- Permission.cs
- XamlTreeBuilderBamlRecordWriter.cs
- FormViewUpdateEventArgs.cs
- PrinterUnitConvert.cs
- UnsafeNativeMethods.cs
- MediaContextNotificationWindow.cs
- ParserOptions.cs
- PathStreamGeometryContext.cs
- ListViewHitTestInfo.cs
- Win32Native.cs
- BaseProcessor.cs
- Processor.cs
- _ConnectStream.cs
- XmlnsDictionary.cs
- StatusBar.cs
- Splitter.cs
- JavaScriptString.cs
- BaseValidatorDesigner.cs
- PerSessionInstanceContextProvider.cs
- MetadataArtifactLoaderFile.cs
- ScrollBarRenderer.cs
- AttributedMetaModel.cs
- ObjectStateManagerMetadata.cs
- GlyphsSerializer.cs
- BaseComponentEditor.cs
- ProfileGroupSettings.cs
- PropertyContainer.cs
- MD5CryptoServiceProvider.cs
- XMLUtil.cs
- SafeBuffer.cs
- DataIdProcessor.cs
- ImageAttributes.cs
- DataGridViewCellEventArgs.cs