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
- XmlBoundElement.cs
- TableColumn.cs
- PixelShader.cs
- SystemInfo.cs
- SurrogateSelector.cs
- EventlogProvider.cs
- PerfCounters.cs
- TextBox.cs
- ExpressionBuilderContext.cs
- Int32CollectionConverter.cs
- CapabilitiesState.cs
- ZipIOExtraFieldPaddingElement.cs
- DigitShape.cs
- WebPartChrome.cs
- InkCollectionBehavior.cs
- XmlUtil.cs
- Logging.cs
- IdnMapping.cs
- ClientTargetSection.cs
- DataControlCommands.cs
- LateBoundChannelParameterCollection.cs
- PopupEventArgs.cs
- ImageField.cs
- DetailsViewDeleteEventArgs.cs
- TrustManagerMoreInformation.cs
- ToolStripArrowRenderEventArgs.cs
- TableCell.cs
- CompoundFileDeflateTransform.cs
- SmiRecordBuffer.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- StringBuilder.cs
- ArgumentNullException.cs
- CompilationUtil.cs
- EntityCommandExecutionException.cs
- ObfuscationAttribute.cs
- TextTreeTextBlock.cs
- Item.cs
- XsltContext.cs
- TagNameToTypeMapper.cs
- Span.cs
- DataTableClearEvent.cs
- RadioButtonStandardAdapter.cs
- xmlfixedPageInfo.cs
- ItemsPresenter.cs
- CustomValidator.cs
- StrokeNodeOperations.cs
- XmlSchemaCollection.cs
- BrushProxy.cs
- ContextBase.cs
- Point4DValueSerializer.cs
- DeleteCardRequest.cs
- ScrollItemPatternIdentifiers.cs
- KoreanLunisolarCalendar.cs
- DigestTraceRecordHelper.cs
- MediaScriptCommandRoutedEventArgs.cs
- AuthorizationRule.cs
- PenLineCapValidation.cs
- SqlDeflator.cs
- HtmlShimManager.cs
- validationstate.cs
- ClientSideQueueItem.cs
- DataList.cs
- ListViewHitTestInfo.cs
- PackageDigitalSignature.cs
- XPathBuilder.cs
- TextCharacters.cs
- CreateUserWizardStep.cs
- ContextMarshalException.cs
- SqlCacheDependencyDatabase.cs
- GlobalProxySelection.cs
- BitmapEffectInput.cs
- ProfileManager.cs
- XmlImplementation.cs
- PolyBezierSegment.cs
- DesignerActionMethodItem.cs
- OleDbFactory.cs
- Interop.cs
- ChtmlTextWriter.cs
- SiteMapNode.cs
- ADConnectionHelper.cs
- Application.cs
- GradientStop.cs
- ResXResourceReader.cs
- Hashtable.cs
- Soap12ServerProtocol.cs
- OracleParameterBinding.cs
- QueryCacheManager.cs
- AbsoluteQuery.cs
- StylusLogic.cs
- HtmlHistory.cs
- TypeDelegator.cs
- ArglessEventHandlerProxy.cs
- Storyboard.cs
- Message.cs
- TextTreeFixupNode.cs
- SerialPort.cs
- HttpFileCollection.cs
- Enum.cs
- SqlCommandBuilder.cs
- FtpCachePolicyElement.cs