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
- VisualTreeUtils.cs
- TextBoxRenderer.cs
- _BaseOverlappedAsyncResult.cs
- SettingsProperty.cs
- ExpressionValueEditor.cs
- PermissionToken.cs
- TypeUtils.cs
- Durable.cs
- WeakEventManager.cs
- TableRowCollection.cs
- WindowsStatusBar.cs
- DLinqDataModelProvider.cs
- SqlDataReader.cs
- ChildDocumentBlock.cs
- ImageBrush.cs
- TokenBasedSet.cs
- ColorConverter.cs
- KnownTypeDataContractResolver.cs
- DataAccessor.cs
- ExpressionBuilder.cs
- SafeCryptHandles.cs
- ObjectView.cs
- CodeIndexerExpression.cs
- _CommandStream.cs
- WebPart.cs
- CompletionCallbackWrapper.cs
- TextBox.cs
- MimeMapping.cs
- VirtualizedItemPattern.cs
- ResourceAttributes.cs
- ProbeMatches11.cs
- FixedPage.cs
- PageResolution.cs
- SQLInt32.cs
- RuleInfoComparer.cs
- KnownAssembliesSet.cs
- InternalConfigEventArgs.cs
- SQLString.cs
- CriticalExceptions.cs
- FlowLayoutPanel.cs
- WindowInteropHelper.cs
- GlobalProxySelection.cs
- ValidationErrorCollection.cs
- DataGridViewCell.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- WorkflowApplicationAbortedException.cs
- MachinePropertyVariants.cs
- SqlDataSourceView.cs
- ProfileParameter.cs
- HttpPostLocalhostServerProtocol.cs
- BindingWorker.cs
- HexParser.cs
- ContextInformation.cs
- SqlException.cs
- ClientConfigurationSystem.cs
- CompilerError.cs
- StreamGeometryContext.cs
- BlockCollection.cs
- DataGridViewCellMouseEventArgs.cs
- MachineKeyConverter.cs
- CollectionViewGroupInternal.cs
- DependencySource.cs
- ExpressionBinding.cs
- ServiceDescriptionContext.cs
- ReadWriteControlDesigner.cs
- UniqueID.cs
- RoleService.cs
- Transform3D.cs
- ConfigXmlWhitespace.cs
- CodeIdentifier.cs
- OneOfScalarConst.cs
- X509Certificate.cs
- controlskin.cs
- UpWmlMobileTextWriter.cs
- CodeNamespaceImport.cs
- ConvertEvent.cs
- ButtonRenderer.cs
- WhileDesigner.cs
- CommandDevice.cs
- DesignTimeHTMLTextWriter.cs
- PointLight.cs
- XmlNodeChangedEventArgs.cs
- RectIndependentAnimationStorage.cs
- SmiEventStream.cs
- SQLByte.cs
- CacheSection.cs
- RuntimeResourceSet.cs
- assemblycache.cs
- PlatformCulture.cs
- WindowsScrollBar.cs
- NumberAction.cs
- XmlUtil.cs
- XmlQualifiedName.cs
- SecurityManager.cs
- OdbcParameterCollection.cs
- TypedCompletedAsyncResult.cs
- PhysicalAddress.cs
- OleDbStruct.cs
- ObjectCloneHelper.cs
- DataSourceXmlSerializationAttribute.cs