Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / Design / ParenthesizePropertyNameAttribute.cs / 1305376 / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.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
- RectAnimationClockResource.cs
- SymbolTable.cs
- TreeNodeStyleCollection.cs
- XsltContext.cs
- SmuggledIUnknown.cs
- DiscoveryEndpointElement.cs
- DesignerView.Commands.cs
- HtmlTextArea.cs
- Point3DAnimationBase.cs
- WindowsFormsLinkLabel.cs
- SQLGuidStorage.cs
- XPathCompileException.cs
- TraceSection.cs
- HashAlgorithm.cs
- ValueTypeFixupInfo.cs
- MouseActionValueSerializer.cs
- SqlRowUpdatedEvent.cs
- GridEntry.cs
- ToolStripControlHost.cs
- ListViewItemMouseHoverEvent.cs
- TabItem.cs
- PageTextBox.cs
- Literal.cs
- Vector3DAnimationBase.cs
- GridToolTip.cs
- RepeatInfo.cs
- ListChunk.cs
- WindowsTokenRoleProvider.cs
- HwndHostAutomationPeer.cs
- IndexOutOfRangeException.cs
- MaskedTextProvider.cs
- EventData.cs
- ToolStripItemCollection.cs
- SafeCryptoHandles.cs
- SelectionEditingBehavior.cs
- Point4D.cs
- KeyPressEvent.cs
- LinkClickEvent.cs
- DifferencingCollection.cs
- PropertyChangingEventArgs.cs
- FileSystemWatcher.cs
- FixedTextBuilder.cs
- FlowDocumentPageViewerAutomationPeer.cs
- SQLRoleProvider.cs
- CryptoConfig.cs
- Line.cs
- MouseActionConverter.cs
- CodeNamespaceImport.cs
- QuerySettings.cs
- DocumentGridContextMenu.cs
- TrackBar.cs
- StateRuntime.cs
- EntityContainerEntitySet.cs
- TypeDescriptionProviderAttribute.cs
- TextEditorSpelling.cs
- AnnotationAuthorChangedEventArgs.cs
- TypeToken.cs
- IODescriptionAttribute.cs
- TimelineGroup.cs
- CodeCompiler.cs
- XmlEncodedRawTextWriter.cs
- AuthenticatedStream.cs
- HTTPNotFoundHandler.cs
- DataGridState.cs
- InputLangChangeEvent.cs
- SkipQueryOptionExpression.cs
- Point4DValueSerializer.cs
- PageFunction.cs
- NullRuntimeConfig.cs
- ImpersonationContext.cs
- ToolStripRenderer.cs
- ReceiveCompletedEventArgs.cs
- dtdvalidator.cs
- _LocalDataStore.cs
- StoreItemCollection.Loader.cs
- DocumentViewerConstants.cs
- ProfileInfo.cs
- HMACSHA512.cs
- KeyNotFoundException.cs
- ScriptModule.cs
- SqlNodeAnnotation.cs
- AdministrationHelpers.cs
- BitmapPalette.cs
- MouseOverProperty.cs
- InlinedLocationReference.cs
- SimpleWebHandlerParser.cs
- DataList.cs
- PowerModeChangedEventArgs.cs
- StandardBindingReliableSessionElement.cs
- SID.cs
- MediaElement.cs
- CapiSymmetricAlgorithm.cs
- DataGridViewCellStyleConverter.cs
- BindingManagerDataErrorEventArgs.cs
- CircleHotSpot.cs
- XmlSchemaDocumentation.cs
- ArrayHelper.cs
- ComponentCollection.cs
- TextRunCacheImp.cs
- ExtenderProviderService.cs