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
- Brush.cs
- EditingCoordinator.cs
- CollectionBuilder.cs
- VirtualDirectoryMapping.cs
- WizardPanelChangingEventArgs.cs
- SecurityTokenSpecification.cs
- ListViewCancelEventArgs.cs
- InkSerializer.cs
- NativeWindow.cs
- NamespaceExpr.cs
- VolatileEnlistmentMultiplexing.cs
- SystemMulticastIPAddressInformation.cs
- TypeInitializationException.cs
- DataGridViewCheckBoxColumn.cs
- SqlFunctions.cs
- ScrollChrome.cs
- XmlAnyElementAttribute.cs
- TextServicesManager.cs
- HttpClientCertificate.cs
- MimeBasePart.cs
- QuaternionAnimationBase.cs
- ProviderIncompatibleException.cs
- XslVisitor.cs
- UnaryOperationBinder.cs
- BamlResourceDeserializer.cs
- _AcceptOverlappedAsyncResult.cs
- IPGlobalProperties.cs
- UIntPtr.cs
- PermissionAttributes.cs
- ListViewInsertionMark.cs
- AuthenticationManager.cs
- MarkupCompilePass1.cs
- ActivationArguments.cs
- RSACryptoServiceProvider.cs
- XmlIgnoreAttribute.cs
- XmlDownloadManager.cs
- ListViewGroup.cs
- CommandSet.cs
- ContentElement.cs
- RouteItem.cs
- PenContexts.cs
- XmlException.cs
- IriParsingElement.cs
- Token.cs
- QilName.cs
- DesignOnlyAttribute.cs
- DbConnectionPoolOptions.cs
- basenumberconverter.cs
- CultureInfo.cs
- WpfGeneratedKnownProperties.cs
- FileEnumerator.cs
- EventLogPermission.cs
- DummyDataSource.cs
- Baml2006KeyRecord.cs
- MemberMaps.cs
- MethodToken.cs
- WeakEventManager.cs
- InstanceDescriptor.cs
- HtmlContainerControl.cs
- SessionStateItemCollection.cs
- XmlSchemaAll.cs
- CommonProperties.cs
- ConfigurationSection.cs
- DataTableNewRowEvent.cs
- SelectionEditor.cs
- ReadOnlyHierarchicalDataSourceView.cs
- RectangleHotSpot.cs
- AndCondition.cs
- AccessControlList.cs
- XhtmlCssHandler.cs
- OleDbFactory.cs
- DecimalAnimation.cs
- AbstractDataSvcMapFileLoader.cs
- HttpValueCollection.cs
- BrowserCapabilitiesCodeGenerator.cs
- FixedSOMElement.cs
- StrokeIntersection.cs
- CustomErrorsSectionWrapper.cs
- Utilities.cs
- HttpWebRequestElement.cs
- ChildTable.cs
- TextCompositionManager.cs
- ListItemDetailViewAttribute.cs
- DataGridHeaderBorder.cs
- PageSetupDialog.cs
- ErasingStroke.cs
- UriScheme.cs
- RowCache.cs
- SqlSupersetValidator.cs
- Shape.cs
- LinqDataSourceContextEventArgs.cs
- UriScheme.cs
- TableAdapterManagerGenerator.cs
- TextLine.cs
- InvalidAsynchronousStateException.cs
- XmlBinaryWriterSession.cs
- SignatureTargetIdManager.cs
- SortedDictionary.cs
- CompilerGlobalScopeAttribute.cs
- ResourcesGenerator.cs