Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Gets a value indicating whether this attribute is set to ///by default. // 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
- GiveFeedbackEvent.cs
- RemotingConfiguration.cs
- InteropExecutor.cs
- PropertyIDSet.cs
- SspiHelper.cs
- AnyAllSearchOperator.cs
- SiteMap.cs
- BaseCollection.cs
- KnownColorTable.cs
- TextWriterTraceListener.cs
- ObjectStateManager.cs
- AuthenticationConfig.cs
- CompilationSection.cs
- DeclarativeCatalogPart.cs
- LocalizationCodeDomSerializer.cs
- AppDomainFactory.cs
- FrameworkElementFactory.cs
- DrawingImage.cs
- PropertyPanel.cs
- util.cs
- ProgressBarAutomationPeer.cs
- SessionState.cs
- XPathNodeHelper.cs
- MetafileHeaderWmf.cs
- StackOverflowException.cs
- Symbol.cs
- RIPEMD160Managed.cs
- HttpContextServiceHost.cs
- ConfigurationManagerInternalFactory.cs
- ParentQuery.cs
- IndexExpression.cs
- SqlProviderManifest.cs
- MemberRelationshipService.cs
- FixedSOMElement.cs
- StaticFileHandler.cs
- BitmapSource.cs
- CqlIdentifiers.cs
- SqlNotificationRequest.cs
- NavigatorInput.cs
- WebExceptionStatus.cs
- LinkedResourceCollection.cs
- XhtmlBasicImageAdapter.cs
- CompositeCollectionView.cs
- DeviceSpecificDesigner.cs
- Privilege.cs
- UnwrappedTypesXmlSerializerManager.cs
- DefaultTypeArgumentAttribute.cs
- IdnElement.cs
- FixedPageAutomationPeer.cs
- OutputCacheProfileCollection.cs
- ProcessHostServerConfig.cs
- PropertyEmitterBase.cs
- LostFocusEventManager.cs
- MultiByteCodec.cs
- panel.cs
- ToolStripContentPanel.cs
- SmtpTransport.cs
- QuadraticEase.cs
- BufferedGraphics.cs
- TableRowCollection.cs
- ClientSideProviderDescription.cs
- Resources.Designer.cs
- TagPrefixInfo.cs
- ECDsaCng.cs
- IdentityReference.cs
- itemelement.cs
- SamlSecurityToken.cs
- ReflectPropertyDescriptor.cs
- AutomationPatternInfo.cs
- TimeoutValidationAttribute.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- SqlColumnizer.cs
- GridViewEditEventArgs.cs
- DescendentsWalkerBase.cs
- AuthenticationModuleElement.cs
- DefinitionUpdate.cs
- RadioButtonStandardAdapter.cs
- DataGridItemCollection.cs
- MediaTimeline.cs
- TextTreePropertyUndoUnit.cs
- MimeObjectFactory.cs
- PartialArray.cs
- GridViewSelectEventArgs.cs
- CommentEmitter.cs
- AstNode.cs
- ColumnReorderedEventArgs.cs
- SendActivity.cs
- SignatureToken.cs
- KeyInstance.cs
- TransportChannelListener.cs
- SystemEvents.cs
- ConfigsHelper.cs
- GridViewPageEventArgs.cs
- DrawListViewItemEventArgs.cs
- Mapping.cs
- GridViewCellAutomationPeer.cs
- ConfigXmlAttribute.cs
- BaseAsyncResult.cs
- DesignTable.cs
- FocusWithinProperty.cs