Code:
/ DotNET / DotNET / 8.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
- SwitchAttribute.cs
- ClientSettings.cs
- ClientConfigPaths.cs
- UserCancellationException.cs
- XmlSerializationWriter.cs
- ObjectSpanRewriter.cs
- List.cs
- ValueTypeFixupInfo.cs
- SmtpNtlmAuthenticationModule.cs
- ComponentGlyph.cs
- StringAnimationUsingKeyFrames.cs
- ImageField.cs
- Ticks.cs
- XmlReflectionMember.cs
- XmlFormatExtensionPointAttribute.cs
- Resources.Designer.cs
- assertwrapper.cs
- StreamSecurityUpgradeAcceptorAsyncResult.cs
- InternalResources.cs
- TreeIterator.cs
- FormParameter.cs
- SoapExtensionTypeElementCollection.cs
- DbParameterHelper.cs
- MdiWindowListItemConverter.cs
- JsonWriterDelegator.cs
- ScrollPattern.cs
- VirtualDirectoryMapping.cs
- WindowsRegion.cs
- ContainerActivationHelper.cs
- Point4DValueSerializer.cs
- SafeNativeMemoryHandle.cs
- GradientStop.cs
- QilXmlWriter.cs
- CodeArrayCreateExpression.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ImportedPolicyConversionContext.cs
- ListViewItem.cs
- SQLResource.cs
- InheritanceRules.cs
- AnnotationAuthorChangedEventArgs.cs
- StatusBarPanelClickEvent.cs
- HealthMonitoringSectionHelper.cs
- SQLDecimalStorage.cs
- SqlFormatter.cs
- TCEAdapterGenerator.cs
- WmlCalendarAdapter.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- DBSchemaRow.cs
- TextRunTypographyProperties.cs
- LateBoundBitmapDecoder.cs
- XmlSchemaParticle.cs
- GridViewCancelEditEventArgs.cs
- DateTimeFormatInfo.cs
- SynchronousReceiveElement.cs
- DataGridViewElement.cs
- SqlTriggerAttribute.cs
- dsa.cs
- PeerApplication.cs
- WebPartConnection.cs
- WaitForChangedResult.cs
- LiteralTextContainerControlBuilder.cs
- TextRangeProviderWrapper.cs
- Message.cs
- CallId.cs
- FaultCallbackWrapper.cs
- SoapHeaders.cs
- XmlAutoDetectWriter.cs
- CacheOutputQuery.cs
- BuilderElements.cs
- AdditionalEntityFunctions.cs
- NativeMethods.cs
- ping.cs
- StringSource.cs
- SchemaManager.cs
- ApplicationFileCodeDomTreeGenerator.cs
- SkinBuilder.cs
- Crc32.cs
- Variant.cs
- FixedTextBuilder.cs
- InvalidFilterCriteriaException.cs
- FormsAuthenticationEventArgs.cs
- DataGridViewRowCollection.cs
- TTSVoice.cs
- RequestFactory.cs
- XsdDuration.cs
- MailAddressCollection.cs
- HttpListenerRequest.cs
- HttpCachePolicyElement.cs
- XmlNamedNodeMap.cs
- QueryPageSettingsEventArgs.cs
- sqlmetadatafactory.cs
- MemoryRecordBuffer.cs
- ExceptionCollection.cs
- _CommandStream.cs
- RotationValidation.cs
- EditorBrowsableAttribute.cs
- AggregationMinMaxHelpers.cs
- DoubleAnimationUsingPath.cs
- GridItemProviderWrapper.cs
- FileIOPermission.cs