Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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(); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HttpServerVarsCollection.cs
- sqlnorm.cs
- LinearGradientBrush.cs
- SafeSystemMetrics.cs
- KnownTypesProvider.cs
- ObjectReaderCompiler.cs
- SocketAddress.cs
- BitmapEffectRenderDataResource.cs
- FreezableDefaultValueFactory.cs
- XmlDigitalSignatureProcessor.cs
- IIS7WorkerRequest.cs
- NavigationCommands.cs
- TextSyndicationContent.cs
- Walker.cs
- XPathNodeIterator.cs
- dtdvalidator.cs
- MemberMaps.cs
- DataGridViewCellConverter.cs
- EmulateRecognizeCompletedEventArgs.cs
- SystemDropShadowChrome.cs
- PackUriHelper.cs
- SHA512.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- RuntimeResourceSet.cs
- WebBrowserProgressChangedEventHandler.cs
- XmlHierarchicalDataSourceView.cs
- Int16AnimationBase.cs
- WindowsAuthenticationEventArgs.cs
- CustomErrorCollection.cs
- LongTypeConverter.cs
- TextRangeBase.cs
- IERequestCache.cs
- CreateUserWizard.cs
- ListDictionary.cs
- ResponseBodyWriter.cs
- JsonWriter.cs
- Stopwatch.cs
- LicFileLicenseProvider.cs
- WebReferencesBuildProvider.cs
- MethodMessage.cs
- Byte.cs
- WebPartManagerInternals.cs
- BitmapCodecInfo.cs
- GridViewUpdateEventArgs.cs
- CompareInfo.cs
- XmlConvert.cs
- SQLSingle.cs
- WindowsAuthenticationEventArgs.cs
- TypedElement.cs
- BypassElementCollection.cs
- BinaryWriter.cs
- SQLDateTimeStorage.cs
- AssertSection.cs
- XmlSchemaExporter.cs
- EventOpcode.cs
- RangeValuePatternIdentifiers.cs
- DebuggerService.cs
- _NetworkingPerfCounters.cs
- DataGridViewSortCompareEventArgs.cs
- HtmlTableRow.cs
- CompatibleComparer.cs
- sqlnorm.cs
- ConfigXmlText.cs
- UntrustedRecipientException.cs
- AmbientProperties.cs
- XPathExpr.cs
- TypeSystem.cs
- WinOEToolBoxItem.cs
- UnsafeNativeMethodsMilCoreApi.cs
- CellTreeNode.cs
- ConfigsHelper.cs
- ServiceEndpointElement.cs
- CacheMemory.cs
- StringAttributeCollection.cs
- SqlDataSource.cs
- SplashScreen.cs
- DBSqlParserTable.cs
- ProfessionalColorTable.cs
- ScrollContentPresenter.cs
- ObjectDataSourceView.cs
- Line.cs
- ParentUndoUnit.cs
- XmlJsonWriter.cs
- PageThemeParser.cs
- MgmtConfigurationRecord.cs
- ImageListDesigner.cs
- IdnMapping.cs
- SqlNodeTypeOperators.cs
- AssemblyAttributesGoHere.cs
- IIS7UserPrincipal.cs
- Matrix3D.cs
- PageSettings.cs
- XmlCharCheckingWriter.cs
- XmlDataSourceNodeDescriptor.cs
- RequestCachingSection.cs
- Vector3DCollection.cs
- SystemIPGlobalStatistics.cs
- Int32AnimationUsingKeyFrames.cs
- AnnotationAuthorChangedEventArgs.cs
- DataStreams.cs