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
- MD5CryptoServiceProvider.cs
- FontInfo.cs
- DecimalAnimationBase.cs
- infer.cs
- DesignTimeVisibleAttribute.cs
- WebDescriptionAttribute.cs
- EventDrivenDesigner.cs
- FixedSOMElement.cs
- ViewKeyConstraint.cs
- StringUtil.cs
- GenericXmlSecurityToken.cs
- WinFormsSecurity.cs
- Int32Animation.cs
- DBPropSet.cs
- TableNameAttribute.cs
- HashHelper.cs
- dataobject.cs
- ActiveDocumentEvent.cs
- SystemIPv4InterfaceProperties.cs
- SatelliteContractVersionAttribute.cs
- CodeAttachEventStatement.cs
- BuildProviderCollection.cs
- ResourceExpression.cs
- CommonGetThemePartSize.cs
- GroupByQueryOperator.cs
- WebPartDescription.cs
- DataGridCaption.cs
- GroupDescription.cs
- MasterPageCodeDomTreeGenerator.cs
- OverflowException.cs
- CompositeCollection.cs
- Size.cs
- SyndicationPerson.cs
- CompressStream.cs
- Switch.cs
- TriggerCollection.cs
- InvalidateEvent.cs
- CompilationUtil.cs
- WebPartConnectionsEventArgs.cs
- InfoCardConstants.cs
- ActivityMarkupSerializationProvider.cs
- AbstractExpressions.cs
- TrackingMemoryStreamFactory.cs
- EtwTrace.cs
- AnchorEditor.cs
- ImmutableClientRuntime.cs
- FlowDocumentReader.cs
- PartBasedPackageProperties.cs
- RegexNode.cs
- SQLByte.cs
- OdbcConnectionFactory.cs
- RenderCapability.cs
- CredentialSelector.cs
- SpeakProgressEventArgs.cs
- ExpressionBuilder.cs
- SyntaxCheck.cs
- ListViewContainer.cs
- BStrWrapper.cs
- datacache.cs
- SQLResource.cs
- _HeaderInfoTable.cs
- StringValidatorAttribute.cs
- IPHostEntry.cs
- TickBar.cs
- ScrollChrome.cs
- Hashtable.cs
- TextBox.cs
- WpfGeneratedKnownTypes.cs
- TriggerBase.cs
- Hash.cs
- DataGridViewColumnCollectionDialog.cs
- BamlResourceDeserializer.cs
- SingleConverter.cs
- Adorner.cs
- ItemsControl.cs
- SQLDecimalStorage.cs
- RadioButtonFlatAdapter.cs
- PartialArray.cs
- FixUpCollection.cs
- ResourceManager.cs
- ConfigXmlSignificantWhitespace.cs
- DesignSurfaceManager.cs
- SafeSystemMetrics.cs
- CodeTypeDeclaration.cs
- ClientConvert.cs
- XpsFixedPageReaderWriter.cs
- RijndaelManaged.cs
- UInt64.cs
- ToolStripDropDownClosedEventArgs.cs
- DictationGrammar.cs
- ReadWriteSpinLock.cs
- FixedPageStructure.cs
- odbcmetadatacolumnnames.cs
- InstanceStore.cs
- DataFieldConverter.cs
- StylusPointPropertyInfo.cs
- ScopelessEnumAttribute.cs
- WebPartConnectionsCancelVerb.cs
- DesignTimeData.cs
- CompositeCollectionView.cs