Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Gets a value indicating whether this attribute is set to ///by default. // 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ListItemConverter.cs
- Dump.cs
- WindowCollection.cs
- LayoutExceptionEventArgs.cs
- BitmapFrameEncode.cs
- SqlNodeAnnotations.cs
- ListViewTableCell.cs
- DataMemberConverter.cs
- TrustLevel.cs
- BaseWebProxyFinder.cs
- XsltOutput.cs
- SQLBytesStorage.cs
- CodeSubDirectoriesCollection.cs
- Effect.cs
- FormCollection.cs
- UTF7Encoding.cs
- ConfigXmlDocument.cs
- ReadWriteObjectLock.cs
- TimeSpanStorage.cs
- SubpageParagraph.cs
- EncodingInfo.cs
- GridLengthConverter.cs
- OleDbStruct.cs
- DataGridState.cs
- ConfigXmlComment.cs
- EntityDataSourceContextCreatingEventArgs.cs
- IPipelineRuntime.cs
- ContentPresenter.cs
- GatewayIPAddressInformationCollection.cs
- BaseConfigurationRecord.cs
- XsltContext.cs
- XhtmlConformanceSection.cs
- TreeNodeSelectionProcessor.cs
- ECDsa.cs
- XmlTypeMapping.cs
- DiagnosticTrace.cs
- EventDrivenDesigner.cs
- TargetConverter.cs
- selecteditemcollection.cs
- SupportsEventValidationAttribute.cs
- _BaseOverlappedAsyncResult.cs
- DesignerActionUI.cs
- ErrorView.xaml.cs
- WebPartConnectionsDisconnectVerb.cs
- EdmComplexPropertyAttribute.cs
- HttpPostProtocolReflector.cs
- WebBaseEventKeyComparer.cs
- HelpEvent.cs
- Matrix.cs
- Sql8ExpressionRewriter.cs
- IApplicationTrustManager.cs
- TdsParserStaticMethods.cs
- DelimitedListTraceListener.cs
- Literal.cs
- QilVisitor.cs
- ImportCatalogPart.cs
- HandleExceptionArgs.cs
- __ComObject.cs
- StylusCollection.cs
- XmlnsDefinitionAttribute.cs
- AnnotationComponentChooser.cs
- ObjectSet.cs
- PageBuildProvider.cs
- CategoryAttribute.cs
- GridViewPageEventArgs.cs
- RelationshipEndMember.cs
- Stopwatch.cs
- UshortList2.cs
- InkPresenter.cs
- SqlFacetAttribute.cs
- LocalClientSecuritySettingsElement.cs
- VoiceInfo.cs
- DataGridDesigner.cs
- PersistenceTask.cs
- RemotingException.cs
- MappingMetadataHelper.cs
- ProxyWebPartManager.cs
- DataSourceIDConverter.cs
- StateItem.cs
- MD5.cs
- HostingEnvironmentSection.cs
- FusionWrap.cs
- CryptoConfig.cs
- InProcStateClientManager.cs
- IgnoreDataMemberAttribute.cs
- ObjectTag.cs
- UnauthorizedWebPart.cs
- TextServicesProperty.cs
- Stylus.cs
- ExceptionNotification.cs
- ParamArrayAttribute.cs
- EmptyQuery.cs
- XmlSerializerAssemblyAttribute.cs
- EndpointAddress10.cs
- ThicknessAnimationUsingKeyFrames.cs
- DataListItem.cs
- SvcMapFileSerializer.cs
- TemplateDefinition.cs
- RoutedCommand.cs
- ChangePassword.cs