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
- RequestQueryParser.cs
- WebRequestModulesSection.cs
- Clipboard.cs
- InternalCache.cs
- DescendantOverDescendantQuery.cs
- SqlUdtInfo.cs
- PathGeometry.cs
- AssemblyBuilder.cs
- ListViewInsertedEventArgs.cs
- InputScope.cs
- VariableQuery.cs
- WebPartMinimizeVerb.cs
- InheritanceContextHelper.cs
- Transactions.cs
- SerializationInfo.cs
- DesignerOptionService.cs
- HScrollProperties.cs
- PackWebResponse.cs
- UInt64Converter.cs
- BamlLocalizationDictionary.cs
- X509CertificateStore.cs
- WebServiceData.cs
- _SafeNetHandles.cs
- GraphicsContainer.cs
- TextFormatter.cs
- baseaxisquery.cs
- DataGridViewTopRowAccessibleObject.cs
- Rect3D.cs
- ReferenceService.cs
- CodeTypeParameterCollection.cs
- BevelBitmapEffect.cs
- StreamSecurityUpgradeInitiator.cs
- SimpleWorkerRequest.cs
- CustomCredentialPolicy.cs
- ModulesEntry.cs
- HelpEvent.cs
- SqlCommandBuilder.cs
- FrameworkElement.cs
- SectionUpdates.cs
- UnitControl.cs
- BufferBuilder.cs
- FamilyTypefaceCollection.cs
- ColorTransformHelper.cs
- WorkflowRuntimeBehavior.cs
- HttpRequest.cs
- RTLAwareMessageBox.cs
- ByteFacetDescriptionElement.cs
- Figure.cs
- ProofTokenCryptoHandle.cs
- ZipFileInfo.cs
- BoolLiteral.cs
- ConfigurationManagerInternal.cs
- EventMappingSettingsCollection.cs
- ImageSourceConverter.cs
- IteratorFilter.cs
- UpdatePanel.cs
- InkPresenter.cs
- Models.cs
- HostingEnvironmentException.cs
- CompoundFileDeflateTransform.cs
- ImpersonationContext.cs
- SiteMapNodeItemEventArgs.cs
- WindowProviderWrapper.cs
- WebServiceMethodData.cs
- NotifyParentPropertyAttribute.cs
- Logging.cs
- SurrogateSelector.cs
- X509Certificate2.cs
- PatternMatcher.cs
- Math.cs
- DecimalKeyFrameCollection.cs
- MetadataPropertyCollection.cs
- StringToken.cs
- WebPartVerb.cs
- IDQuery.cs
- TransactionManager.cs
- Stackframe.cs
- Convert.cs
- SmiMetaData.cs
- BamlRecords.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- TraceUtils.cs
- GeometryHitTestParameters.cs
- LinqDataSource.cs
- Debug.cs
- CodeGen.cs
- SignedXml.cs
- HttpModulesSection.cs
- SynchronizedDispatch.cs
- CreateParams.cs
- AmbiguousMatchException.cs
- EventDrivenDesigner.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- Roles.cs
- _UriTypeConverter.cs
- ToolTipService.cs
- AppDomainAttributes.cs
- ReliableOutputSessionChannel.cs
- PropertyTabAttribute.cs
- StopStoryboard.cs