Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- MouseGestureConverter.cs
- NavigationProperty.cs
- IdentityHolder.cs
- RadioButton.cs
- LateBoundBitmapDecoder.cs
- WebControlAdapter.cs
- WebPartsPersonalizationAuthorization.cs
- TypeNameHelper.cs
- MTConfigUtil.cs
- ActivityTrace.cs
- WindowProviderWrapper.cs
- CustomAttribute.cs
- XMLSchema.cs
- GCHandleCookieTable.cs
- TagMapCollection.cs
- ShapingWorkspace.cs
- CallbackDebugBehavior.cs
- PointF.cs
- ParseElementCollection.cs
- ImportCatalogPart.cs
- WorkflowItemsPresenter.cs
- StringSorter.cs
- RegistryKey.cs
- RequestNavigateEventArgs.cs
- DoubleKeyFrameCollection.cs
- ViewDesigner.cs
- UnitySerializationHolder.cs
- StyleCollection.cs
- TransformerInfo.cs
- MulticastDelegate.cs
- MailMessageEventArgs.cs
- DateTimeUtil.cs
- HistoryEventArgs.cs
- RawStylusInputCustomData.cs
- ModelServiceImpl.cs
- RowToFieldTransformer.cs
- StreamingContext.cs
- LinkedResourceCollection.cs
- RawStylusInputCustomDataList.cs
- TabControl.cs
- SqlTopReducer.cs
- ValidatorCollection.cs
- PropertyInformation.cs
- BrowserCapabilitiesFactoryBase.cs
- SiteMapPath.cs
- DiagnosticsConfigurationHandler.cs
- OdbcParameter.cs
- RTTypeWrapper.cs
- MediaElementAutomationPeer.cs
- StrongNamePublicKeyBlob.cs
- RowParagraph.cs
- ListView.cs
- PageThemeBuildProvider.cs
- Utils.cs
- SecureEnvironment.cs
- AlgoModule.cs
- GeneratedView.cs
- Literal.cs
- SimpleRecyclingCache.cs
- DataGridRow.cs
- ValidationError.cs
- NullableDecimalAverageAggregationOperator.cs
- SessionEndedEventArgs.cs
- InvalidOleVariantTypeException.cs
- DBConnectionString.cs
- InvariantComparer.cs
- GcSettings.cs
- DocumentGridPage.cs
- BindStream.cs
- SqlProfileProvider.cs
- Int32KeyFrameCollection.cs
- RealizationDrawingContextWalker.cs
- BindingManagerDataErrorEventArgs.cs
- DBCommand.cs
- PeerApplicationLaunchInfo.cs
- EventDescriptor.cs
- ActiveXHelper.cs
- XpsDigitalSignature.cs
- ReflectionUtil.cs
- QueueException.cs
- XmlObjectSerializerReadContext.cs
- CompatibleIComparer.cs
- DefaultExpression.cs
- LoginUtil.cs
- WebPartConnectionsConnectVerb.cs
- SmiMetaData.cs
- WsdlInspector.cs
- CommonRemoteMemoryBlock.cs
- Section.cs
- WebPartVerb.cs
- Journaling.cs
- ExpressionSelection.cs
- FrameworkElementAutomationPeer.cs
- SQLStringStorage.cs
- ProfileService.cs
- DateTime.cs
- SmiXetterAccessMap.cs
- SymDocumentType.cs
- X509CertificateCollection.cs
- ApplicationHost.cs