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
- OSFeature.cs
- WebPartVerb.cs
- XmlSchemas.cs
- DiagnosticsConfigurationHandler.cs
- StubHelpers.cs
- ExecutionScope.cs
- ProxyHwnd.cs
- SymmetricAlgorithm.cs
- ToolStripMenuItem.cs
- ClientUtils.cs
- InvokeMethodDesigner.xaml.cs
- HtmlWindow.cs
- ScriptComponentDescriptor.cs
- IconConverter.cs
- SettingsPropertyWrongTypeException.cs
- CancellationTokenRegistration.cs
- TCPListener.cs
- EventListenerClientSide.cs
- WebZone.cs
- OdbcPermission.cs
- PageCache.cs
- UnsafeNativeMethods.cs
- SectionXmlInfo.cs
- HttpListener.cs
- DrawingServices.cs
- OrderedDictionaryStateHelper.cs
- HttpListenerPrefixCollection.cs
- ContainerUtilities.cs
- DecoderFallback.cs
- DispatcherObject.cs
- TaskHelper.cs
- ConfigurationSettings.cs
- ModelProperty.cs
- SignalGate.cs
- EmptyReadOnlyDictionaryInternal.cs
- MessageQueue.cs
- SecurityDescriptor.cs
- Composition.cs
- XmlAutoDetectWriter.cs
- JsonMessageEncoderFactory.cs
- CurrentChangingEventManager.cs
- GlyphCache.cs
- HashUtility.cs
- WebPartRestoreVerb.cs
- XDeferredAxisSource.cs
- DataGrid.cs
- MarkedHighlightComponent.cs
- QilList.cs
- ByteStorage.cs
- OutputCacheProfile.cs
- X509SecurityToken.cs
- PartManifestEntry.cs
- StatusBar.cs
- XPathDocument.cs
- StartFileNameEditor.cs
- CssTextWriter.cs
- BindingSourceDesigner.cs
- DecoratedNameAttribute.cs
- SecurityManager.cs
- TableDesigner.cs
- PropertyConverter.cs
- SamlAudienceRestrictionCondition.cs
- GeometryGroup.cs
- DetailsViewRow.cs
- Missing.cs
- RoleGroup.cs
- util.cs
- SchemaCompiler.cs
- XslTransform.cs
- XmlSchemaGroup.cs
- ValidationError.cs
- InvokeGenerator.cs
- DoubleAnimationUsingKeyFrames.cs
- WebPartDescriptionCollection.cs
- AssemblyBuilderData.cs
- UInt64Converter.cs
- DataGridViewCheckBoxColumn.cs
- ProtocolsSection.cs
- WinHttpWebProxyFinder.cs
- ActivityIdHeader.cs
- MenuItemAutomationPeer.cs
- TrackBarRenderer.cs
- Stackframe.cs
- ReachVisualSerializer.cs
- PerformanceCounterCategory.cs
- MaterializeFromAtom.cs
- BoundColumn.cs
- SchemaTableOptionalColumn.cs
- XsdDateTime.cs
- DataBindingCollectionConverter.cs
- RecipientInfo.cs
- GenericTypeParameterBuilder.cs
- RequestCacheManager.cs
- WMIGenerator.cs
- CrossAppDomainChannel.cs
- XPathAncestorQuery.cs
- Item.cs
- URLMembershipCondition.cs
- MinimizableAttributeTypeConverter.cs
- Options.cs