Code:
/ FX-1434 / FX-1434 / 1.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
- Util.cs
- BaseAddressPrefixFilterElement.cs
- TreeChangeInfo.cs
- ReflectEventDescriptor.cs
- WebPartPersonalization.cs
- MultiView.cs
- PerformanceCounterLib.cs
- FormViewInsertEventArgs.cs
- Floater.cs
- DbConnectionFactory.cs
- HttpCacheVaryByContentEncodings.cs
- IDQuery.cs
- FreezableCollection.cs
- PreservationFileWriter.cs
- FixedBufferAttribute.cs
- PresentationTraceSources.cs
- InputReferenceExpression.cs
- WebBrowser.cs
- XslAstAnalyzer.cs
- mda.cs
- MenuItemBindingCollection.cs
- DesignerEditorPartChrome.cs
- Item.cs
- Expr.cs
- PropertyValue.cs
- ActiveXSite.cs
- _OverlappedAsyncResult.cs
- IImplicitResourceProvider.cs
- CodeTypeParameterCollection.cs
- DiscoveryDocumentSerializer.cs
- LogicalExpressionTypeConverter.cs
- PackWebRequestFactory.cs
- Missing.cs
- ValueSerializer.cs
- FileCodeGroup.cs
- RSAOAEPKeyExchangeFormatter.cs
- SqlBulkCopyColumnMapping.cs
- ApplicationSettingsBase.cs
- MatrixConverter.cs
- DataGridRowHeader.cs
- ListViewSelectEventArgs.cs
- DropShadowBitmapEffect.cs
- NullableLongSumAggregationOperator.cs
- ParseHttpDate.cs
- ManagementPath.cs
- ContractReference.cs
- DefaultBindingPropertyAttribute.cs
- JsonWriter.cs
- EntityClientCacheEntry.cs
- OpCellTreeNode.cs
- RecordBuilder.cs
- ViewBox.cs
- HwndAppCommandInputProvider.cs
- COM2TypeInfoProcessor.cs
- _PooledStream.cs
- Mutex.cs
- PackageFilter.cs
- Hash.cs
- ConversionValidationRule.cs
- ObjectDataSourceDisposingEventArgs.cs
- StringDictionary.cs
- CharAnimationBase.cs
- UpdatePanelTriggerCollection.cs
- WpfKnownType.cs
- tooltip.cs
- NetworkStream.cs
- DataObject.cs
- VBCodeProvider.cs
- TimeSpanSecondsConverter.cs
- RegexGroupCollection.cs
- SafeBitVector32.cs
- SiteOfOriginPart.cs
- ObjectViewFactory.cs
- UnsafeNativeMethods.cs
- ValidationRuleCollection.cs
- ContextProperty.cs
- Matrix.cs
- TextPointer.cs
- FixedSOMContainer.cs
- AnnotationAuthorChangedEventArgs.cs
- RadioButton.cs
- ActionNotSupportedException.cs
- HMACRIPEMD160.cs
- PropertyRecord.cs
- UnmanagedMemoryStreamWrapper.cs
- XmlElementAttributes.cs
- safex509handles.cs
- CompatibleComparer.cs
- SafeThemeHandle.cs
- SystemGatewayIPAddressInformation.cs
- WSSecurityOneDotZeroSendSecurityHeader.cs
- CodeDirectionExpression.cs
- InputDevice.cs
- AuthorizationRuleCollection.cs
- ScrollBar.cs
- InputLangChangeEvent.cs
- DataGridViewComboBoxCell.cs
- ResourceType.cs
- CustomErrorCollection.cs
- XamlSerializationHelper.cs