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
- PageParser.cs
- ComboBoxRenderer.cs
- InputMethodStateChangeEventArgs.cs
- ScriptControlManager.cs
- EventlogProvider.cs
- RenderData.cs
- OverlappedContext.cs
- BlobPersonalizationState.cs
- _BaseOverlappedAsyncResult.cs
- DbParameterCollectionHelper.cs
- TargetException.cs
- CalendarItem.cs
- ADConnectionHelper.cs
- ClientSettingsProvider.cs
- CheckBoxList.cs
- ObjectMaterializedEventArgs.cs
- PlatformCulture.cs
- SerialPort.cs
- XPathNavigator.cs
- BooleanAnimationBase.cs
- PrinterSettings.cs
- OutOfMemoryException.cs
- Preprocessor.cs
- AuthenticationService.cs
- SystemResourceKey.cs
- Component.cs
- FormsAuthenticationConfiguration.cs
- RecognitionResult.cs
- SQLChars.cs
- DataSourceSelectArguments.cs
- ClientSponsor.cs
- BaseProcessor.cs
- XmlKeywords.cs
- DefaultAssemblyResolver.cs
- DataGridColumn.cs
- CodeAttributeArgumentCollection.cs
- XmlQualifiedNameTest.cs
- ByteStream.cs
- LinkDesigner.cs
- XmlMemberMapping.cs
- Line.cs
- __TransparentProxy.cs
- CodeMemberMethod.cs
- DeclaredTypeValidatorAttribute.cs
- GraphicsState.cs
- ConnectionInterfaceCollection.cs
- EventWaitHandleSecurity.cs
- ProviderSettings.cs
- Reference.cs
- DataGridParentRows.cs
- DataListCommandEventArgs.cs
- ObjectDataSourceStatusEventArgs.cs
- CultureNotFoundException.cs
- MaskedTextBoxDesignerActionList.cs
- XmlnsCache.cs
- ModelFactory.cs
- SystemIcons.cs
- List.cs
- InvalidBodyAccessException.cs
- WmlLinkAdapter.cs
- Serialization.cs
- Descriptor.cs
- securitycriticaldataformultiplegetandset.cs
- PackageRelationshipCollection.cs
- _Rfc2616CacheValidators.cs
- TogglePatternIdentifiers.cs
- OracleException.cs
- WorkflowMarkupSerializationProvider.cs
- GrabHandleGlyph.cs
- ACE.cs
- XmlDataImplementation.cs
- OracleBFile.cs
- HandlerBase.cs
- WindowsRebar.cs
- TableItemPattern.cs
- XamlPointCollectionSerializer.cs
- UIElementHelper.cs
- HijriCalendar.cs
- TextEditorParagraphs.cs
- CopyOnWriteList.cs
- IndexedString.cs
- CheckBoxAutomationPeer.cs
- RequestResizeEvent.cs
- Stream.cs
- Unit.cs
- HMAC.cs
- ComponentDispatcherThread.cs
- RepeaterItem.cs
- MsmqBindingMonitor.cs
- SchemaType.cs
- Baml2006KeyRecord.cs
- ClickablePoint.cs
- Pair.cs
- DataGridPagerStyle.cs
- CatalogPartCollection.cs
- WindowsScrollBarBits.cs
- HostSecurityManager.cs
- _OverlappedAsyncResult.cs
- SafePEFileHandle.cs
- CompensationToken.cs