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
- PenLineJoinValidation.cs
- MemoryMappedView.cs
- SystemIPv6InterfaceProperties.cs
- HttpListenerResponse.cs
- TextCompositionManager.cs
- BasicExpandProvider.cs
- XamlBrushSerializer.cs
- SqlDelegatedTransaction.cs
- ResourceDisplayNameAttribute.cs
- ExtentKey.cs
- CommentEmitter.cs
- SpecialNameAttribute.cs
- CachedFontFamily.cs
- RegexMatchCollection.cs
- LinearQuaternionKeyFrame.cs
- SignatureHelper.cs
- DefaultTextStore.cs
- securestring.cs
- SqlConnectionStringBuilder.cs
- SiteMapNodeItem.cs
- DbParameterHelper.cs
- ScriptMethodAttribute.cs
- CleanUpVirtualizedItemEventArgs.cs
- FontWeights.cs
- ListBase.cs
- IERequestCache.cs
- ReferenceEqualityComparer.cs
- Scene3D.cs
- CodeMethodReturnStatement.cs
- TextClipboardData.cs
- SamlDoNotCacheCondition.cs
- DataGridViewColumnDesigner.cs
- FormView.cs
- Validator.cs
- ClientUrlResolverWrapper.cs
- ComplexBindingPropertiesAttribute.cs
- TemplatePartAttribute.cs
- DecimalStorage.cs
- AnyAllSearchOperator.cs
- HwndSourceKeyboardInputSite.cs
- ScrollItemProviderWrapper.cs
- TypeDescriptionProviderAttribute.cs
- TableColumn.cs
- CommandEventArgs.cs
- LinkConverter.cs
- XmlIncludeAttribute.cs
- SQLDateTime.cs
- BinaryFormatterWriter.cs
- AdornerLayer.cs
- Transform3D.cs
- SystemColorTracker.cs
- ByteAnimationBase.cs
- FragmentQuery.cs
- LOSFormatter.cs
- MsmqIntegrationSecurityElement.cs
- Columns.cs
- SqlProcedureAttribute.cs
- EventLogEntryCollection.cs
- XsdCachingReader.cs
- ListControlBoundActionList.cs
- Int32Animation.cs
- QueryableFilterUserControl.cs
- GridItemPatternIdentifiers.cs
- WindowsFormsSynchronizationContext.cs
- CatalogZoneBase.cs
- Span.cs
- DataGridViewRowEventArgs.cs
- NotFiniteNumberException.cs
- PageCatalogPart.cs
- IPipelineRuntime.cs
- InputReportEventArgs.cs
- SecurityState.cs
- HtmlToClrEventProxy.cs
- GC.cs
- DecoderExceptionFallback.cs
- SafeRightsManagementQueryHandle.cs
- ZipIOBlockManager.cs
- TextTreeRootTextBlock.cs
- TraceShell.cs
- BindingNavigator.cs
- SessionSwitchEventArgs.cs
- ContextMenuService.cs
- BatchParser.cs
- CornerRadiusConverter.cs
- BaseTemplateCodeDomTreeGenerator.cs
- XomlDesignerLoader.cs
- DataGridViewAddColumnDialog.cs
- RegexCaptureCollection.cs
- RadioButton.cs
- IsolatedStorageException.cs
- ControlCollection.cs
- CodeParameterDeclarationExpression.cs
- HyperLinkColumn.cs
- Comparer.cs
- LateBoundBitmapDecoder.cs
- TextElementEnumerator.cs
- ImageCodecInfo.cs
- SqlDeflator.cs
- CheckBoxPopupAdapter.cs
- DataControlFieldCollection.cs