Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / Design / ParenthesizePropertyNameAttribute.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DbgUtil.cs
- RangeValuePattern.cs
- DataRowCollection.cs
- MailWriter.cs
- RegionInfo.cs
- ACL.cs
- ItemCheckEvent.cs
- WorkflowMarkupSerializationManager.cs
- EventHandlerList.cs
- AppSettingsReader.cs
- TripleDESCryptoServiceProvider.cs
- SqlClientMetaDataCollectionNames.cs
- DetailsViewDeleteEventArgs.cs
- MultiDataTrigger.cs
- HtmlInputSubmit.cs
- BinaryObjectInfo.cs
- KeyProperty.cs
- PageAsyncTaskManager.cs
- ContentElement.cs
- BackgroundWorker.cs
- AccessDataSourceView.cs
- MediaScriptCommandRoutedEventArgs.cs
- HttpMethodAttribute.cs
- StylusButtonCollection.cs
- StateChangeEvent.cs
- BindingMAnagerBase.cs
- ComPlusInstanceContextInitializer.cs
- RIPEMD160.cs
- DataGridCell.cs
- AppDomainAttributes.cs
- ValueUnavailableException.cs
- StringAttributeCollection.cs
- BufferedGraphicsContext.cs
- CommonXSendMessage.cs
- HMACMD5.cs
- ExpandableObjectConverter.cs
- PointCollectionConverter.cs
- VersionPair.cs
- SqlCacheDependency.cs
- mediaeventshelper.cs
- ParameterElementCollection.cs
- JsonMessageEncoderFactory.cs
- ToolStripDropDownItem.cs
- BaseParser.cs
- LinkedResourceCollection.cs
- ColorConvertedBitmapExtension.cs
- SourceItem.cs
- FrameworkRichTextComposition.cs
- SqlTriggerAttribute.cs
- IntPtr.cs
- XmlSchemaExporter.cs
- Inflater.cs
- IriParsingElement.cs
- ForceCopyBuildProvider.cs
- Page.cs
- CollectionChange.cs
- WebPartTransformer.cs
- ItemType.cs
- CodeAccessPermission.cs
- StorageBasedPackageProperties.cs
- PageContent.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- RequestResizeEvent.cs
- CacheOutputQuery.cs
- Properties.cs
- TemplateControlCodeDomTreeGenerator.cs
- MexHttpBindingElement.cs
- ButtonFieldBase.cs
- shaperfactoryquerycachekey.cs
- RuntimeWrappedException.cs
- UndoEngine.cs
- TextServicesLoader.cs
- UserControlCodeDomTreeGenerator.cs
- ByteAnimation.cs
- CorrelationRequestContext.cs
- ObjectDesignerDataSourceView.cs
- Zone.cs
- NativeMethods.cs
- GroupItemAutomationPeer.cs
- CngProperty.cs
- _ListenerRequestStream.cs
- UnsafeNativeMethods.cs
- DefaultDialogButtons.cs
- IriParsingElement.cs
- DesignColumn.cs
- IpcPort.cs
- ComplexLine.cs
- EDesignUtil.cs
- InputDevice.cs
- InputElement.cs
- PropertyPathWorker.cs
- ComboBoxAutomationPeer.cs
- RawUIStateInputReport.cs
- PartitionResolver.cs
- TTSEvent.cs
- PolicyManager.cs
- PowerModeChangedEventArgs.cs
- BitmapEffect.cs
- EnterpriseServicesHelper.cs
- DtdParser.cs