Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / LocalizableAttribute.cs / 1305376 / 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
- IdentityElement.cs
- CodeNamespace.cs
- CodeMemberEvent.cs
- BinHexDecoder.cs
- DataSourceView.cs
- FormattedText.cs
- MasterPage.cs
- GuidConverter.cs
- SecurityUtils.cs
- NetworkInterface.cs
- ValidatorCompatibilityHelper.cs
- DbProviderConfigurationHandler.cs
- CursorInteropHelper.cs
- DbMetaDataCollectionNames.cs
- SettingsProviderCollection.cs
- CaseInsensitiveHashCodeProvider.cs
- ThreadStateException.cs
- PackagePart.cs
- _ConnectionGroup.cs
- SafeRegistryKey.cs
- DocumentSchemaValidator.cs
- ShaderEffect.cs
- ReflectTypeDescriptionProvider.cs
- SystemTcpStatistics.cs
- MethodBuilder.cs
- COM2IPerPropertyBrowsingHandler.cs
- HandlerMappingMemo.cs
- IList.cs
- SQLDateTime.cs
- RawStylusInput.cs
- VirtualPathUtility.cs
- StyleTypedPropertyAttribute.cs
- Converter.cs
- DockPattern.cs
- Header.cs
- SecurityManager.cs
- xsdvalidator.cs
- ParseChildrenAsPropertiesAttribute.cs
- QuotedPairReader.cs
- MutexSecurity.cs
- ChangesetResponse.cs
- SqlResolver.cs
- ProvidePropertyAttribute.cs
- LogicalExpr.cs
- MatrixAnimationBase.cs
- InfoCardHelper.cs
- LoadItemsEventArgs.cs
- RuleSetDialog.cs
- StateRuntime.cs
- SqlDataRecord.cs
- CodePageUtils.cs
- ToolboxDataAttribute.cs
- ListParaClient.cs
- Color.cs
- TreePrinter.cs
- NetworkInformationException.cs
- XPathPatternParser.cs
- XmlEventCache.cs
- PackageRelationshipSelector.cs
- Visual3D.cs
- UrlAuthFailedErrorFormatter.cs
- InheritedPropertyDescriptor.cs
- ExpressionBuilder.cs
- ObjectHandle.cs
- UniqueEventHelper.cs
- PromptBuilder.cs
- FormsAuthenticationTicket.cs
- DataMemberFieldEditor.cs
- _ListenerResponseStream.cs
- Point3DValueSerializer.cs
- AccessKeyManager.cs
- SubtreeProcessor.cs
- LoginCancelEventArgs.cs
- XPathMultyIterator.cs
- ListViewTableCell.cs
- FixedHyperLink.cs
- SuppressedPackageProperties.cs
- WebConfigurationManager.cs
- HtmlToClrEventProxy.cs
- DefaultAsyncDataDispatcher.cs
- PageBuildProvider.cs
- NativeMethods.cs
- SecurityTokenTypes.cs
- KeyToListMap.cs
- DiagnosticsConfiguration.cs
- NameTable.cs
- ConnectionStringsSection.cs
- TraceShell.cs
- SchemaNames.cs
- EmptyImpersonationContext.cs
- TransformerInfo.cs
- TypeHelpers.cs
- TableCellCollection.cs
- GacUtil.cs
- ClientConfigurationSystem.cs
- followingsibling.cs
- FormsAuthenticationConfiguration.cs
- SQLString.cs
- IDReferencePropertyAttribute.cs
- GridViewCommandEventArgs.cs