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
- CommandValueSerializer.cs
- ImageBrush.cs
- CoTaskMemHandle.cs
- InstanceValue.cs
- RawAppCommandInputReport.cs
- HtmlTextViewAdapter.cs
- EventMetadata.cs
- invalidudtexception.cs
- InputLanguage.cs
- connectionpool.cs
- CFGGrammar.cs
- SchemaElement.cs
- WebPageTraceListener.cs
- VisualStates.cs
- TemplateField.cs
- HostSecurityManager.cs
- XmlTextReader.cs
- PersonalizationEntry.cs
- AbstractDataSvcMapFileLoader.cs
- RSAOAEPKeyExchangeFormatter.cs
- HealthMonitoringSectionHelper.cs
- RowToParametersTransformer.cs
- ApplicationSecurityManager.cs
- SecurityManager.cs
- TextSimpleMarkerProperties.cs
- SoapParser.cs
- shaperfactoryquerycacheentry.cs
- FontFamily.cs
- HttpDebugHandler.cs
- MgmtConfigurationRecord.cs
- WizardPanelChangingEventArgs.cs
- PermissionRequestEvidence.cs
- UniqueContractNameValidationBehavior.cs
- DataObjectFieldAttribute.cs
- StyleCollection.cs
- FormsAuthenticationConfiguration.cs
- OutputCacheSettings.cs
- MethodAccessException.cs
- ListBox.cs
- CatalogPartChrome.cs
- PresentationSource.cs
- XPathParser.cs
- ColorKeyFrameCollection.cs
- MsmqDiagnostics.cs
- MarshalDirectiveException.cs
- XmlDataFileEditor.cs
- PathFigureCollection.cs
- QueryPageSettingsEventArgs.cs
- QilLiteral.cs
- SubpageParagraph.cs
- RegisterResponseInfo.cs
- GeometryModel3D.cs
- CroppedBitmap.cs
- PathGeometry.cs
- Int64Storage.cs
- PrivilegeNotHeldException.cs
- EventLogLink.cs
- StringKeyFrameCollection.cs
- RoutedEventConverter.cs
- FormsIdentity.cs
- TransactionChannelFaultConverter.cs
- Addressing.cs
- GC.cs
- PackageFilter.cs
- RequestQueryParser.cs
- StringConverter.cs
- PipelineComponent.cs
- CompositeActivityTypeDescriptor.cs
- ThreadPool.cs
- HostingEnvironmentWrapper.cs
- GenericQueueSurrogate.cs
- SiteIdentityPermission.cs
- TailCallAnalyzer.cs
- WriteTimeStream.cs
- StylusLogic.cs
- RegistrationServices.cs
- DllNotFoundException.cs
- GridItemPattern.cs
- ObjectSpanRewriter.cs
- Win32.cs
- CompoundFileStorageReference.cs
- ImageInfo.cs
- Error.cs
- SequentialUshortCollection.cs
- SequenceDesigner.cs
- ToolZone.cs
- DBConcurrencyException.cs
- ObjectCloneHelper.cs
- xmlfixedPageInfo.cs
- SoapFormatter.cs
- FunctionQuery.cs
- ClientTarget.cs
- FilterQueryOptionExpression.cs
- AnimationTimeline.cs
- XmlILModule.cs
- FocusManager.cs
- SystemIPGlobalProperties.cs
- PackagingUtilities.cs
- PageContentAsyncResult.cs
- ToolStripHighContrastRenderer.cs