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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- rsa.cs
- Subtree.cs
- ObjectDataSourceFilteringEventArgs.cs
- DateTimeConstantAttribute.cs
- _RequestLifetimeSetter.cs
- QueueProcessor.cs
- IconBitmapDecoder.cs
- OutputWindow.cs
- RuleElement.cs
- ListViewItemMouseHoverEvent.cs
- XamlSerializerUtil.cs
- TextPenaltyModule.cs
- RedistVersionInfo.cs
- AsyncOperationManager.cs
- OdbcException.cs
- codemethodreferenceexpression.cs
- EntityStoreSchemaFilterEntry.cs
- EntityAdapter.cs
- SqlDataSourceWizardForm.cs
- XmlAttributeCache.cs
- ListBox.cs
- VirtualPath.cs
- HttpsChannelFactory.cs
- ScriptingSectionGroup.cs
- HitTestParameters3D.cs
- SpeakProgressEventArgs.cs
- SizeChangedInfo.cs
- JsonReader.cs
- RegexEditorDialog.cs
- _PooledStream.cs
- OdbcError.cs
- SQLBytesStorage.cs
- CommonDialog.cs
- ScriptBehaviorDescriptor.cs
- BulletDecorator.cs
- PageParserFilter.cs
- COM2PropertyPageUITypeConverter.cs
- BitmapScalingModeValidation.cs
- DataSourceCache.cs
- GradientBrush.cs
- DataGridViewCellCancelEventArgs.cs
- MemoryMappedFile.cs
- EnumBuilder.cs
- BuildManager.cs
- PreProcessInputEventArgs.cs
- SettingsAttributeDictionary.cs
- WindowsFont.cs
- BasicCellRelation.cs
- UserControlParser.cs
- HttpRuntimeSection.cs
- NavigationPropertyEmitter.cs
- HtmlShim.cs
- ActiveXContainer.cs
- Nodes.cs
- ArrangedElementCollection.cs
- RtfToken.cs
- AssemblyHelper.cs
- DataBoundControlParameterTarget.cs
- BufferedStream.cs
- HandlerFactoryWrapper.cs
- ClientSideProviderDescription.cs
- WebPartConnectVerb.cs
- DataServiceContext.cs
- CustomWebEventKey.cs
- RandomNumberGenerator.cs
- Section.cs
- MSAANativeProvider.cs
- ConstraintManager.cs
- ConstraintStruct.cs
- LinkLabelLinkClickedEvent.cs
- ObjectParameter.cs
- IncrementalHitTester.cs
- Camera.cs
- SqlWriter.cs
- SafePEFileHandle.cs
- Int16KeyFrameCollection.cs
- BrushConverter.cs
- AssociationType.cs
- OpenTypeLayout.cs
- GPRECT.cs
- Parser.cs
- SqlConnectionString.cs
- Vector3DCollection.cs
- DefaultProxySection.cs
- NextPreviousPagerField.cs
- ObjectHelper.cs
- arabicshape.cs
- SiteMapNodeItem.cs
- QEncodedStream.cs
- TaiwanLunisolarCalendar.cs
- TextTreeNode.cs
- MultiSelectRootGridEntry.cs
- IdentitySection.cs
- Light.cs
- ListSourceHelper.cs
- HtmlElementCollection.cs
- BamlCollectionHolder.cs
- ScriptRegistrationManager.cs
- EntitySetDataBindingList.cs
- SpAudioStreamWrapper.cs