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 / LocalizableAttribute.cs / 1 / LocalizableAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.Diagnostics; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.All)] public sealed class LocalizableAttribute : Attribute { private bool isLocalizable = false; ///Specifies whether a property should be localized. ////// public LocalizableAttribute(bool isLocalizable) { this.isLocalizable = isLocalizable; } ////// Initializes a new instance of the ///class. /// /// public bool IsLocalizable { get { return isLocalizable; } } ////// Gets a value indicating whether /// a property should be localized. /// ////// public static readonly LocalizableAttribute Yes = new LocalizableAttribute(true); ////// Specifies that a property should be localized. This /// ///field is read-only. /// /// public static readonly LocalizableAttribute No = new LocalizableAttribute(false); ////// Specifies that a property should not be localized. This /// ///field is read-only. /// /// public static readonly LocalizableAttribute Default = No; ////// Specifies the default value, which is ///, that is /// a property should not be localized. This field is /// read-only. /// /// /// public override bool IsDefaultAttribute() { return (IsLocalizable == Default.IsLocalizable); } public override bool Equals(object obj) { LocalizableAttribute other = obj as LocalizableAttribute; return (other != null) && other.IsLocalizable == this.isLocalizable; } public override int GetHashCode() { return base.GetHashCode(); } } } // 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.Diagnostics; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.All)] public sealed class LocalizableAttribute : Attribute { private bool isLocalizable = false; ///Specifies whether a property should be localized. ////// public LocalizableAttribute(bool isLocalizable) { this.isLocalizable = isLocalizable; } ////// Initializes a new instance of the ///class. /// /// public bool IsLocalizable { get { return isLocalizable; } } ////// Gets a value indicating whether /// a property should be localized. /// ////// public static readonly LocalizableAttribute Yes = new LocalizableAttribute(true); ////// Specifies that a property should be localized. This /// ///field is read-only. /// /// public static readonly LocalizableAttribute No = new LocalizableAttribute(false); ////// Specifies that a property should not be localized. This /// ///field is read-only. /// /// public static readonly LocalizableAttribute Default = No; ////// Specifies the default value, which is ///, that is /// a property should not be localized. This field is /// read-only. /// /// /// public override bool IsDefaultAttribute() { return (IsLocalizable == Default.IsLocalizable); } public override bool Equals(object obj) { LocalizableAttribute other = obj as LocalizableAttribute; return (other != null) && other.IsLocalizable == this.isLocalizable; } public override int GetHashCode() { return base.GetHashCode(); } } } // 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
- SingleAnimationBase.cs
- DataGridViewRowPostPaintEventArgs.cs
- CollectionView.cs
- XhtmlCssHandler.cs
- OSFeature.cs
- DataGridState.cs
- SelectionPatternIdentifiers.cs
- EntitySetDataBindingList.cs
- SplineQuaternionKeyFrame.cs
- LogReservationCollection.cs
- DataGridTable.cs
- ListView.cs
- ObjectStateManager.cs
- reliableinputsessionchannel.cs
- DropDownHolder.cs
- LogSwitch.cs
- TabletCollection.cs
- Processor.cs
- HttpServerUtilityBase.cs
- HtmlTextBoxAdapter.cs
- CreatingCookieEventArgs.cs
- ZipIOBlockManager.cs
- TextEmbeddedObject.cs
- DateTime.cs
- TransformConverter.cs
- Control.cs
- Point3DValueSerializer.cs
- RadialGradientBrush.cs
- StrokeCollection.cs
- WindowsFont.cs
- CodeNamespaceImportCollection.cs
- ToolStripDropDownItem.cs
- OwnerDrawPropertyBag.cs
- InvalidProgramException.cs
- XPathDocumentBuilder.cs
- CursorConverter.cs
- VirtualPathProvider.cs
- SHA512Managed.cs
- OracleInternalConnection.cs
- RenderContext.cs
- X509ServiceCertificateAuthenticationElement.cs
- MarkupWriter.cs
- ViewBase.cs
- CollectionAdapters.cs
- LogManagementAsyncResult.cs
- DataContractJsonSerializer.cs
- DataGridView.cs
- EventWaitHandleSecurity.cs
- Cast.cs
- lengthconverter.cs
- SessionStateItemCollection.cs
- MLangCodePageEncoding.cs
- ClientEventManager.cs
- MaterialGroup.cs
- ElementsClipboardData.cs
- PassportPrincipal.cs
- ClientSettingsProvider.cs
- SqlCacheDependencyDatabase.cs
- ValuePatternIdentifiers.cs
- TypeBuilder.cs
- SqlBooleanizer.cs
- GraphicsPath.cs
- PassportAuthentication.cs
- TargetException.cs
- EntitySetBase.cs
- SizeValueSerializer.cs
- SqlDataSourceCache.cs
- filewebrequest.cs
- ExceptionTrace.cs
- WizardPanel.cs
- MimeTypeAttribute.cs
- CreateDataSourceDialog.cs
- WebEvents.cs
- Variable.cs
- OdbcFactory.cs
- InvalidBodyAccessException.cs
- ItemCollection.cs
- RuleSetDialog.cs
- ListViewSelectEventArgs.cs
- XmlSchemaRedefine.cs
- ADMembershipUser.cs
- DrawToolTipEventArgs.cs
- ParsedAttributeCollection.cs
- VisualStyleElement.cs
- ObjectDisposedException.cs
- CodeAttributeArgumentCollection.cs
- LinqDataSource.cs
- SubMenuStyleCollection.cs
- Size3D.cs
- PreviousTrackingServiceAttribute.cs
- FactoryRecord.cs
- CompoundFileStorageReference.cs
- SqlProviderServices.cs
- WindowProviderWrapper.cs
- WhitespaceSignificantCollectionAttribute.cs
- ControlValuePropertyAttribute.cs
- LeafCellTreeNode.cs
- FixedDocumentPaginator.cs
- ImmutablePropertyDescriptorGridEntry.cs
- TemplatePagerField.cs