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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StorageEntitySetMapping.cs
- TypeElement.cs
- SecurityTimestamp.cs
- CollaborationHelperFunctions.cs
- XmlAutoDetectWriter.cs
- SecurityDocument.cs
- DiagnosticEventProvider.cs
- ResXDataNode.cs
- ControlBuilderAttribute.cs
- DateTimeValueSerializer.cs
- MethodToken.cs
- BaseDataList.cs
- Font.cs
- KnownTypesHelper.cs
- StateMachineSubscription.cs
- GenericTypeParameterBuilder.cs
- CompressStream.cs
- HtmlDocument.cs
- PathFigureCollection.cs
- ServiceDeploymentInfo.cs
- GB18030Encoding.cs
- SizeValueSerializer.cs
- TypeConstant.cs
- StreamResourceInfo.cs
- JournalNavigationScope.cs
- BamlLocalizableResource.cs
- XPathNodeIterator.cs
- SchemaElementDecl.cs
- TemplateControlBuildProvider.cs
- filewebresponse.cs
- ImageConverter.cs
- MimeBasePart.cs
- NavigationService.cs
- HttpCookiesSection.cs
- Rotation3DKeyFrameCollection.cs
- Point3DValueSerializer.cs
- JsonEncodingStreamWrapper.cs
- DBDataPermission.cs
- ObfuscationAttribute.cs
- FileFormatException.cs
- Viewport2DVisual3D.cs
- FindProgressChangedEventArgs.cs
- HandlerWithFactory.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- QualifiedCellIdBoolean.cs
- SingleObjectCollection.cs
- Mutex.cs
- Token.cs
- ConstraintStruct.cs
- DBDataPermissionAttribute.cs
- ReflectionTypeLoadException.cs
- FormatterConverter.cs
- ArgumentDirectionHelper.cs
- SmtpCommands.cs
- ValidationRuleCollection.cs
- SkewTransform.cs
- assemblycache.cs
- Crc32Helper.cs
- StrokeDescriptor.cs
- EnumMember.cs
- URLEditor.cs
- RemotingException.cs
- LostFocusEventManager.cs
- FileUtil.cs
- WebPartCatalogAddVerb.cs
- X509CertificateChain.cs
- DocumentPageViewAutomationPeer.cs
- ApplicationManager.cs
- HttpApplicationStateBase.cs
- XslAstAnalyzer.cs
- AssemblyBuilderData.cs
- EdmMember.cs
- ClientType.cs
- Random.cs
- AndCondition.cs
- ParameterCollection.cs
- InvocationExpression.cs
- FileFormatException.cs
- CaretElement.cs
- ResourceProviderFactory.cs
- SetIterators.cs
- ObjectComplexPropertyMapping.cs
- DataGridParentRows.cs
- FlowDocumentPage.cs
- UserPreferenceChangingEventArgs.cs
- ProcessMonitor.cs
- EntitySqlQueryState.cs
- RegistryKey.cs
- VisualBrush.cs
- TableCellCollection.cs
- BuildResult.cs
- GenericTextProperties.cs
- IndexOutOfRangeException.cs
- Directory.cs
- hwndwrapper.cs
- PeerNameRegistration.cs
- ImageSourceConverter.cs
- Triplet.cs
- WebColorConverter.cs
- InheritedPropertyDescriptor.cs