Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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;
///
/// Provides a value indicating whether the name of the associated property is parenthesized in the
/// properties window.
///
[AttributeUsage(AttributeTargets.All)]
public sealed class ParenthesizePropertyNameAttribute : Attribute {
///
///
/// Sets the System.ComponentModel.Design.ParenthesizePropertyName
/// attribute by default to
/// .
///
///
public static readonly ParenthesizePropertyNameAttribute Default = new ParenthesizePropertyNameAttribute();
private bool needParenthesis;
///
/// [To be supplied.]
///
public ParenthesizePropertyNameAttribute() : this(false) {
}
///
/// 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 ParenthesizePropertyNameAttribute(bool needParenthesis) {
this.needParenthesis = needParenthesis;
}
///
///
/// Gets a value indicating
/// whether the
/// attribute is placed in parentheses when listed in
/// the properties window.
///
///
public bool NeedParenthesis {
get {
return needParenthesis;
}
}
///
/// Compares the specified object
/// to this object and tests for equality.
///
public override bool Equals(object o) {
if (o is ParenthesizePropertyNameAttribute) {
return ((ParenthesizePropertyNameAttribute)o).NeedParenthesis == needParenthesis;
}
return false;
}
///
///
/// Returns the hashcode for this object.
///
///
public override int GetHashCode() {
return base.GetHashCode();
}
///
/// Gets a value indicating whether this attribute is set to by default.
///
public override bool IsDefaultAttribute() {
return this.Equals(Default);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.ComponentModel {
using System;
using System.Security.Permissions;
///
/// Provides a value indicating whether the name of the associated property is parenthesized in the
/// properties window.
///
[AttributeUsage(AttributeTargets.All)]
public sealed class ParenthesizePropertyNameAttribute : Attribute {
///
///
/// Sets the System.ComponentModel.Design.ParenthesizePropertyName
/// attribute by default to
/// .
///
///
public static readonly ParenthesizePropertyNameAttribute Default = new ParenthesizePropertyNameAttribute();
private bool needParenthesis;
///
/// [To be supplied.]
///
public ParenthesizePropertyNameAttribute() : this(false) {
}
///
/// 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 ParenthesizePropertyNameAttribute(bool needParenthesis) {
this.needParenthesis = needParenthesis;
}
///
///
/// Gets a value indicating
/// whether the
/// attribute is placed in parentheses when listed in
/// the properties window.
///
///
public bool NeedParenthesis {
get {
return needParenthesis;
}
}
///
/// Compares the specified object
/// to this object and tests for equality.
///
public override bool Equals(object o) {
if (o is ParenthesizePropertyNameAttribute) {
return ((ParenthesizePropertyNameAttribute)o).NeedParenthesis == needParenthesis;
}
return false;
}
///
///
/// Returns the hashcode for this object.
///
///
public override int GetHashCode() {
return base.GetHashCode();
}
///
/// Gets a value indicating whether this attribute is set to by default.
///
public override bool IsDefaultAttribute() {
return this.Equals(Default);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XamlFigureLengthSerializer.cs
- TableCell.cs
- CssStyleCollection.cs
- ButtonStandardAdapter.cs
- CodeArrayCreateExpression.cs
- ResolveMatchesMessageCD1.cs
- PixelFormats.cs
- AbstractDataSvcMapFileLoader.cs
- BeginGetFileNameFromUserRequest.cs
- Fx.cs
- StylusPoint.cs
- ToolboxComponentsCreatedEventArgs.cs
- ResourcesGenerator.cs
- MergeLocalizationDirectives.cs
- KeyTimeConverter.cs
- OutputWindow.cs
- GeneralTransform3D.cs
- IgnoreFileBuildProvider.cs
- FederatedMessageSecurityOverHttp.cs
- EqualityComparer.cs
- SqlNotificationRequest.cs
- DbParameterHelper.cs
- CookieHandler.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- NullableFloatSumAggregationOperator.cs
- SoapSchemaImporter.cs
- SqlPersonalizationProvider.cs
- MinimizableAttributeTypeConverter.cs
- FixedSOMImage.cs
- FSWPathEditor.cs
- SqlBulkCopyColumnMappingCollection.cs
- MonitorWrapper.cs
- SByte.cs
- selecteditemcollection.cs
- userdatakeys.cs
- ObjectSecurity.cs
- KeyPressEvent.cs
- StringFormat.cs
- QilName.cs
- WebMessageEncodingElement.cs
- CodeIterationStatement.cs
- XamlGridLengthSerializer.cs
- DesignerVerbCollection.cs
- RectAnimationUsingKeyFrames.cs
- SystemThemeKey.cs
- MruCache.cs
- ItemContainerGenerator.cs
- ColumnResizeUndoUnit.cs
- SettingsPropertyNotFoundException.cs
- DataListItemEventArgs.cs
- MatrixTransform.cs
- TextParagraphView.cs
- WebPermission.cs
- ExclusiveNamedPipeTransportManager.cs
- ByteStack.cs
- DataGrid.cs
- Bezier.cs
- MailAddressCollection.cs
- VideoDrawing.cs
- ApplicationActivator.cs
- LingerOption.cs
- ScriptModule.cs
- WebBrowsableAttribute.cs
- CounterCreationDataCollection.cs
- MenuItemCollection.cs
- HitTestWithPointDrawingContextWalker.cs
- FolderBrowserDialog.cs
- nulltextcontainer.cs
- LabelEditEvent.cs
- BlurEffect.cs
- AlphaSortedEnumConverter.cs
- DiagnosticsConfigurationHandler.cs
- CombinedGeometry.cs
- ParameterCollection.cs
- SqlUserDefinedTypeAttribute.cs
- WindowsImpersonationContext.cs
- EventListenerClientSide.cs
- LocalTransaction.cs
- SafeFindHandle.cs
- CodeExporter.cs
- ConfigsHelper.cs
- ComponentChangingEvent.cs
- UnmanagedHandle.cs
- SplitterPanel.cs
- CqlErrorHelper.cs
- Annotation.cs
- DataGridViewRowsRemovedEventArgs.cs
- FontUnit.cs
- CodeGeneratorOptions.cs
- WebPartCatalogAddVerb.cs
- EventSourceCreationData.cs
- PeerIPHelper.cs
- AutoFocusStyle.xaml.cs
- Socket.cs
- FormsAuthenticationConfiguration.cs
- StatusBar.cs
- UnsafeNativeMethods.cs
- InputScope.cs
- MtomMessageEncodingElement.cs
- SchemaHelper.cs