Code:
/ FX-1434 / FX-1434 / 1.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
- ButtonField.cs
- UdpTransportSettings.cs
- HttpContext.cs
- InvalidateEvent.cs
- KerberosRequestorSecurityToken.cs
- SystemFonts.cs
- Expander.cs
- PasswordTextNavigator.cs
- DrawingContextWalker.cs
- CharConverter.cs
- UpdateProgress.cs
- WebConfigurationHostFileChange.cs
- BaseCodePageEncoding.cs
- SelectionChangedEventArgs.cs
- RuleSet.cs
- ComplusTypeValidator.cs
- ToolStripProgressBar.cs
- FlowPosition.cs
- DatagridviewDisplayedBandsData.cs
- JoinCqlBlock.cs
- EventRoute.cs
- AutomationProperty.cs
- SBCSCodePageEncoding.cs
- ImpersonateTokenRef.cs
- SafeHandle.cs
- ProfilePropertySettingsCollection.cs
- SqlDataReader.cs
- CodeFieldReferenceExpression.cs
- PageSettings.cs
- ListBoxChrome.cs
- PermissionToken.cs
- DbConnectionPoolIdentity.cs
- MultiPropertyDescriptorGridEntry.cs
- FolderLevelBuildProvider.cs
- Assembly.cs
- MetadataArtifactLoaderFile.cs
- HtmlTableRowCollection.cs
- CustomAttribute.cs
- SQLMembershipProvider.cs
- smtpconnection.cs
- _HeaderInfoTable.cs
- MemoryStream.cs
- EventWaitHandle.cs
- TextBox.cs
- BaseEntityWrapper.cs
- DateTimeFormat.cs
- RectConverter.cs
- ZoomPercentageConverter.cs
- ImageIndexConverter.cs
- Int32CAMarshaler.cs
- XmlSchemaNotation.cs
- Camera.cs
- LogExtentCollection.cs
- EntityViewContainer.cs
- Properties.cs
- HierarchicalDataSourceControl.cs
- ConstructorExpr.cs
- BitmapDownload.cs
- XmlAttributeProperties.cs
- MSAANativeProvider.cs
- ValidatingReaderNodeData.cs
- MarkedHighlightComponent.cs
- COM2FontConverter.cs
- BitStack.cs
- TextRangeBase.cs
- XmlDeclaration.cs
- PolicyLevel.cs
- SliderAutomationPeer.cs
- FileDialogCustomPlacesCollection.cs
- MatrixTransform3D.cs
- ArrayTypeMismatchException.cs
- EventProviderWriter.cs
- TemplateComponentConnector.cs
- smtpconnection.cs
- ToolStripContentPanelRenderEventArgs.cs
- _PooledStream.cs
- TagPrefixCollection.cs
- SqlNodeTypeOperators.cs
- ShadowGlyph.cs
- TextSelectionHelper.cs
- EntityChangedParams.cs
- SqlUtil.cs
- oledbmetadatacolumnnames.cs
- SkinBuilder.cs
- RadioButtonBaseAdapter.cs
- ModelItemCollection.cs
- CodeExpressionStatement.cs
- exports.cs
- WebExceptionStatus.cs
- AssemblyName.cs
- StringWriter.cs
- WebPartDescriptionCollection.cs
- BufferedGraphics.cs
- SvcMapFileSerializer.cs
- LicenseException.cs
- WorkflowMarkupSerializationManager.cs
- OracleBinary.cs
- FastEncoderWindow.cs
- ZipIOLocalFileBlock.cs
- DeflateInput.cs