Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / Design / ParenthesizePropertyNameAttribute.cs / 1305376 / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.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
- mansign.cs
- CachedTypeface.cs
- JapaneseCalendar.cs
- DictionaryBase.cs
- xml.cs
- HandledEventArgs.cs
- ListBoxItemWrapperAutomationPeer.cs
- ComplexPropertyEntry.cs
- HtmlAnchor.cs
- XmlAtomErrorReader.cs
- WindowsToolbar.cs
- CreateUserErrorEventArgs.cs
- SizeConverter.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- ADConnectionHelper.cs
- ScrollBarAutomationPeer.cs
- FlatButtonAppearance.cs
- TextOutput.cs
- MatrixValueSerializer.cs
- Script.cs
- NavigationWindow.cs
- ReliableRequestSessionChannel.cs
- ScalarType.cs
- AutomationEventArgs.cs
- SqlInternalConnection.cs
- NamespaceDisplay.xaml.cs
- QueryResponse.cs
- base64Transforms.cs
- ColorIndependentAnimationStorage.cs
- DesignTimeVisibleAttribute.cs
- Helpers.cs
- AsymmetricSignatureDeformatter.cs
- AnnotationAuthorChangedEventArgs.cs
- AppliedDeviceFiltersEditor.cs
- UniqueIdentifierService.cs
- SimpleMailWebEventProvider.cs
- ResXBuildProvider.cs
- RNGCryptoServiceProvider.cs
- InputEventArgs.cs
- CommonObjectSecurity.cs
- ApplicationContext.cs
- DummyDataSource.cs
- DynamicResourceExtension.cs
- DynamicActionMessageFilter.cs
- Win32MouseDevice.cs
- DataBinding.cs
- MatrixCamera.cs
- TransformConverter.cs
- ProcessHostMapPath.cs
- ToolBar.cs
- ResXFileRef.cs
- NativeMethodsCLR.cs
- AttributeQuery.cs
- UInt16Storage.cs
- ChangeInterceptorAttribute.cs
- DelayedRegex.cs
- GcSettings.cs
- EditorBrowsableAttribute.cs
- DataSetFieldSchema.cs
- HierarchicalDataBoundControl.cs
- VolatileEnlistmentMultiplexing.cs
- FixedElement.cs
- Privilege.cs
- AppliedDeviceFiltersDialog.cs
- Win32SafeHandles.cs
- ImportCatalogPart.cs
- UpdatePanel.cs
- BaseDataListDesigner.cs
- AlignmentXValidation.cs
- WebPartTransformerAttribute.cs
- TemplatedAdorner.cs
- Decorator.cs
- ListItemParagraph.cs
- ErasingStroke.cs
- WindowsFormsHelpers.cs
- ExpressionBuilderContext.cs
- TypeGeneratedEventArgs.cs
- BooleanProjectedSlot.cs
- SignatureConfirmationElement.cs
- ViewManager.cs
- XmlCharType.cs
- TableColumnCollection.cs
- CheckBox.cs
- TypeNameHelper.cs
- DbConnectionStringBuilder.cs
- ListBase.cs
- QueryOpeningEnumerator.cs
- SqlUtil.cs
- FontWeights.cs
- PrePostDescendentsWalker.cs
- GiveFeedbackEvent.cs
- TTSEngineProxy.cs
- NativeCompoundFileAPIs.cs
- __TransparentProxy.cs
- StrongNameUtility.cs
- Base64Stream.cs
- CounterNameConverter.cs
- SqlNotificationRequest.cs
- CharacterString.cs
- BuildProviderInstallComponent.cs