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
- SystemTcpStatistics.cs
- NotConverter.cs
- ProcessManager.cs
- HtmlGenericControl.cs
- Errors.cs
- BinHexEncoder.cs
- DocumentPageHost.cs
- WebBrowserBase.cs
- ProgressiveCrcCalculatingStream.cs
- EnvironmentPermission.cs
- ObjectDataSourceFilteringEventArgs.cs
- GlobalizationAssembly.cs
- QueryAccessibilityHelpEvent.cs
- RoleBoolean.cs
- AddInPipelineAttributes.cs
- ShaderEffect.cs
- ACE.cs
- InternalConfigRoot.cs
- ColorAnimationUsingKeyFrames.cs
- ColorConvertedBitmapExtension.cs
- BuildManager.cs
- MultiDataTrigger.cs
- Random.cs
- ArgumentNullException.cs
- SynchronizingStream.cs
- precedingquery.cs
- MultiDataTrigger.cs
- DataBindEngine.cs
- DataFieldEditor.cs
- HandoffBehavior.cs
- ObjectStateManagerMetadata.cs
- UIElementPropertyUndoUnit.cs
- ProcessRequestArgs.cs
- TextTreeInsertElementUndoUnit.cs
- URLEditor.cs
- RubberbandSelector.cs
- DrawingContextDrawingContextWalker.cs
- XpsDigitalSignature.cs
- DesignerLabelAdapter.cs
- SchemaImporterExtensionsSection.cs
- Scheduler.cs
- shaperfactory.cs
- Int64.cs
- PlatformCulture.cs
- ControlPaint.cs
- PseudoWebRequest.cs
- XmlILConstructAnalyzer.cs
- MetadataArtifactLoaderComposite.cs
- Application.cs
- TreeNodeEventArgs.cs
- SqlDataSourceView.cs
- OrderedDictionaryStateHelper.cs
- MemberInfoSerializationHolder.cs
- PageAsyncTask.cs
- WebServiceHostFactory.cs
- TagMapCollection.cs
- ProviderCommandInfoUtils.cs
- ApplicationTrust.cs
- ToolStripRenderEventArgs.cs
- ShaderEffect.cs
- PixelShader.cs
- UnsafeNativeMethods.cs
- WpfWebRequestHelper.cs
- HttpHeaderCollection.cs
- TextParagraph.cs
- DynamicRenderer.cs
- RawStylusInput.cs
- FlowLayout.cs
- NavigationProperty.cs
- XmlExpressionDumper.cs
- EntityRecordInfo.cs
- SQLConvert.cs
- SiteMapProvider.cs
- DocobjHost.cs
- EmptyEnumerator.cs
- NativeMethods.cs
- AutomationPropertyInfo.cs
- Thickness.cs
- Base64Encoder.cs
- TransactionFlowAttribute.cs
- UserControl.cs
- Condition.cs
- CaseStatementSlot.cs
- ChangeToolStripParentVerb.cs
- ImageSourceConverter.cs
- WindowsStatusBar.cs
- AggregateException.cs
- CreationContext.cs
- Subtree.cs
- CompositionAdorner.cs
- EdmProviderManifest.cs
- DataGridCaption.cs
- DatePickerAutomationPeer.cs
- CodeAssignStatement.cs
- ClientEventManager.cs
- RegexRunner.cs
- HideDisabledControlAdapter.cs
- M3DUtil.cs
- IncrementalCompileAnalyzer.cs
- ComponentCommands.cs