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
- JapaneseCalendar.cs
- ObjectStateManagerMetadata.cs
- NetCodeGroup.cs
- EUCJPEncoding.cs
- RoleService.cs
- SelectionWordBreaker.cs
- PageHandlerFactory.cs
- OleDbSchemaGuid.cs
- MarkerProperties.cs
- WebPartHeaderCloseVerb.cs
- FormViewPagerRow.cs
- Constants.cs
- EnvironmentPermission.cs
- WorkflowRuntime.cs
- DefaultAsyncDataDispatcher.cs
- XmlArrayItemAttributes.cs
- RelationshipFixer.cs
- SqlConnectionPoolProviderInfo.cs
- UIElement3DAutomationPeer.cs
- Point3DAnimationUsingKeyFrames.cs
- CodeExpressionRuleDeclaration.cs
- Line.cs
- TreeViewImageGenerator.cs
- httpstaticobjectscollection.cs
- SingleSelectRootGridEntry.cs
- QilChoice.cs
- ContractComponent.cs
- IImplicitResourceProvider.cs
- RecognizerBase.cs
- BamlLocalizationDictionary.cs
- ListControl.cs
- RegistrySecurity.cs
- BamlCollectionHolder.cs
- CompilerInfo.cs
- autovalidator.cs
- MemberPathMap.cs
- SmiEventSink_DeferedProcessing.cs
- XmlDataSourceNodeDescriptor.cs
- UrlMapping.cs
- TagPrefixAttribute.cs
- OleDbConnectionInternal.cs
- DateTimeUtil.cs
- XmlSchemaType.cs
- CultureTable.cs
- WebPartEditorCancelVerb.cs
- WebControlsSection.cs
- EmbeddedMailObject.cs
- InkCanvasAutomationPeer.cs
- StyleSelector.cs
- RequestDescription.cs
- TableColumn.cs
- TCEAdapterGenerator.cs
- ITextView.cs
- UrlMappingCollection.cs
- BaseParaClient.cs
- ResourceManager.cs
- ExpressionConverter.cs
- VSWCFServiceContractGenerator.cs
- ResourceReader.cs
- PolyLineSegment.cs
- CryptoKeySecurity.cs
- OneOfTypeConst.cs
- FunctionNode.cs
- Command.cs
- CrossAppDomainChannel.cs
- XmlWriterTraceListener.cs
- BitSet.cs
- AccessDataSource.cs
- CornerRadius.cs
- Preprocessor.cs
- EditorOptionAttribute.cs
- IDispatchConstantAttribute.cs
- RectConverter.cs
- JsonWriter.cs
- StrongNameMembershipCondition.cs
- BaseComponentEditor.cs
- BuilderInfo.cs
- SiteMembershipCondition.cs
- CodeTypeMemberCollection.cs
- XmlArrayItemAttributes.cs
- GridViewRowEventArgs.cs
- RouteCollection.cs
- StructuredTypeInfo.cs
- NetStream.cs
- TraceListeners.cs
- ComboBox.cs
- ConnectorSelectionGlyph.cs
- SqlSelectStatement.cs
- ApplicationDirectory.cs
- documentsequencetextpointer.cs
- DataSourceConverter.cs
- CommandEventArgs.cs
- DelayedRegex.cs
- ResourcePermissionBaseEntry.cs
- RegexReplacement.cs
- InputReport.cs
- Grammar.cs
- DbConnectionHelper.cs
- PageHandlerFactory.cs
- CommonObjectSecurity.cs