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
- SqlClientWrapperSmiStream.cs
- ParallelTimeline.cs
- UnsafeNativeMethods.cs
- UnionCodeGroup.cs
- ExtractorMetadata.cs
- AutomationIdentifier.cs
- ValidationHelper.cs
- DesignTimeDataBinding.cs
- MatrixIndependentAnimationStorage.cs
- Keywords.cs
- TableCell.cs
- RequestContext.cs
- BlurBitmapEffect.cs
- StreamGeometryContext.cs
- AttributeCollection.cs
- BaseCAMarshaler.cs
- CompositeControl.cs
- DrawListViewColumnHeaderEventArgs.cs
- manifestimages.cs
- DataSourceXmlAttributeAttribute.cs
- ChangeDirector.cs
- ValidatingReaderNodeData.cs
- AddIn.cs
- TemplateField.cs
- SecUtil.cs
- RtType.cs
- TextWriter.cs
- PropertySet.cs
- Filter.cs
- BasicDesignerLoader.cs
- AsymmetricSignatureFormatter.cs
- Model3D.cs
- RequestQueue.cs
- PropertyEntry.cs
- OleDbInfoMessageEvent.cs
- Matrix3DStack.cs
- AccessibleObject.cs
- SByte.cs
- SiteMap.cs
- ShapeTypeface.cs
- PagesSection.cs
- LinqDataSourceUpdateEventArgs.cs
- HttpContextBase.cs
- Int16AnimationUsingKeyFrames.cs
- ClearCollection.cs
- OdbcConnectionHandle.cs
- RightsManagementEncryptionTransform.cs
- ChannelManager.cs
- AutomationPatternInfo.cs
- FileRecordSequence.cs
- HtmlInputButton.cs
- MatchingStyle.cs
- typedescriptorpermission.cs
- InvokeHandlers.cs
- FullTrustAssembly.cs
- TrackingMemoryStreamFactory.cs
- EpmTargetPathSegment.cs
- AnnotationAdorner.cs
- MiniModule.cs
- UInt16Storage.cs
- TemplateColumn.cs
- RangeBase.cs
- PackagePartCollection.cs
- NgenServicingAttributes.cs
- DataMemberAttribute.cs
- CodeDirectoryCompiler.cs
- SqlNodeAnnotation.cs
- DefaultAsyncDataDispatcher.cs
- RuntimeVariableList.cs
- ElasticEase.cs
- ApplicationManager.cs
- XdrBuilder.cs
- TouchPoint.cs
- Missing.cs
- QuestionEventArgs.cs
- MenuItemStyleCollection.cs
- RuleInfoComparer.cs
- SubclassTypeValidatorAttribute.cs
- ManagementOptions.cs
- ExpanderAutomationPeer.cs
- MultiByteCodec.cs
- MetadataSerializer.cs
- SafeThreadHandle.cs
- OrthographicCamera.cs
- SafeLibraryHandle.cs
- MbpInfo.cs
- ToolTipAutomationPeer.cs
- DynamicObject.cs
- MonthCalendar.cs
- ScopelessEnumAttribute.cs
- StopStoryboard.cs
- ContextStaticAttribute.cs
- BoundField.cs
- StickyNoteHelper.cs
- RemoteWebConfigurationHost.cs
- ConstraintCollection.cs
- CatalogPart.cs
- DbProviderFactory.cs
- ToolStripSystemRenderer.cs
- WindowShowOrOpenTracker.cs