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
- DataListItem.cs
- Emitter.cs
- Mappings.cs
- QueueProcessor.cs
- Input.cs
- WebPartMovingEventArgs.cs
- WebPartEditorOkVerb.cs
- TextFormatterHost.cs
- SmtpNegotiateAuthenticationModule.cs
- ObjectCache.cs
- StringValidator.cs
- InsufficientMemoryException.cs
- BoolExpr.cs
- Win32.cs
- ArithmeticException.cs
- LiteralControl.cs
- ArglessEventHandlerProxy.cs
- PathSegment.cs
- DataStreams.cs
- TargetControlTypeCache.cs
- CalendarButton.cs
- XmlWriterSettings.cs
- TransformPattern.cs
- PropertyFilterAttribute.cs
- QuaternionAnimationBase.cs
- InternalDispatchObject.cs
- StyleCollectionEditor.cs
- WebPartAddingEventArgs.cs
- MultiTargetingUtil.cs
- RenderingEventArgs.cs
- FontCacheUtil.cs
- uribuilder.cs
- DynamicPhysicalDiscoSearcher.cs
- MarkupCompilePass2.cs
- WebCategoryAttribute.cs
- mansign.cs
- InstallerTypeAttribute.cs
- XmlAttributeOverrides.cs
- RC2CryptoServiceProvider.cs
- UserPreferenceChangingEventArgs.cs
- MappingSource.cs
- SqlCacheDependencyDatabase.cs
- AccessDataSourceView.cs
- UdpConstants.cs
- TextBoxDesigner.cs
- DbProviderFactoriesConfigurationHandler.cs
- StorageTypeMapping.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- UIElementHelper.cs
- DataMisalignedException.cs
- _NegotiateClient.cs
- StylusPointDescription.cs
- ReferenceConverter.cs
- OleDbParameterCollection.cs
- CompressionTracing.cs
- TrackingMemoryStream.cs
- FontStyles.cs
- AdRotator.cs
- PropertyItem.cs
- RtfToXamlLexer.cs
- WorkflowDispatchContext.cs
- ConditionCollection.cs
- SecurityKeyIdentifierClause.cs
- ApplicationException.cs
- NamespaceEmitter.cs
- HttpCookie.cs
- ResourceType.cs
- ServerValidateEventArgs.cs
- ClientScriptManager.cs
- TypeBrowser.xaml.cs
- LogExtent.cs
- ResourceReferenceExpression.cs
- IdentitySection.cs
- ButtonPopupAdapter.cs
- SrgsToken.cs
- Int16.cs
- ErrorProvider.cs
- HttpCacheVaryByContentEncodings.cs
- ActivityCodeDomSerializer.cs
- ServiceObjectContainer.cs
- TableRowGroup.cs
- InternalConfigHost.cs
- ProcessHostFactoryHelper.cs
- PeerCollaborationPermission.cs
- ImageCodecInfoPrivate.cs
- HyperLinkStyle.cs
- ComboBoxItem.cs
- OdbcParameter.cs
- AutoResizedEvent.cs
- EmptyTextWriter.cs
- UnionExpr.cs
- ProcessModelInfo.cs
- MultidimensionalArrayItemReference.cs
- Calendar.cs
- sqlstateclientmanager.cs
- Memoizer.cs
- Margins.cs
- SimpleNameService.cs
- CSharpCodeProvider.cs
- FastEncoderWindow.cs