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
- AccessedThroughPropertyAttribute.cs
- ProfessionalColorTable.cs
- Tracking.cs
- XmlSchemaInferenceException.cs
- BulletedList.cs
- SortQuery.cs
- Resources.Designer.cs
- ScrollableControlDesigner.cs
- WebBrowserEvent.cs
- ZeroOpNode.cs
- UrlMappingsSection.cs
- ConfigurationPropertyCollection.cs
- DbParameterCollectionHelper.cs
- SharedConnectionListener.cs
- WebPartConnectionsCancelEventArgs.cs
- BigInt.cs
- BidPrivateBase.cs
- DocumentScope.cs
- FixedSOMPage.cs
- PrimitiveXmlSerializers.cs
- MessageQueuePermission.cs
- ConfigurationException.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- Profiler.cs
- XmlSchemaElement.cs
- ApplicationId.cs
- XmlUnspecifiedAttribute.cs
- AsymmetricKeyExchangeDeformatter.cs
- HttpException.cs
- DbDataAdapter.cs
- KeyTime.cs
- PanelStyle.cs
- CallContext.cs
- DBCSCodePageEncoding.cs
- Relationship.cs
- GradientBrush.cs
- HandlerBase.cs
- Drawing.cs
- ProxySimple.cs
- SerializationHelper.cs
- XsdBuildProvider.cs
- TagPrefixCollection.cs
- DataGridViewColumnCollectionDialog.cs
- cookiecollection.cs
- TraceSource.cs
- KnownTypeDataContractResolver.cs
- ViewCellSlot.cs
- ObsoleteAttribute.cs
- WinFormsSpinner.cs
- ColumnMapCopier.cs
- BitmapEffectInput.cs
- ToolStripSystemRenderer.cs
- PrimitiveXmlSerializers.cs
- SkinBuilder.cs
- SecuritySessionSecurityTokenProvider.cs
- RuntimeHandles.cs
- UnsafeNativeMethodsCLR.cs
- LifetimeServices.cs
- GenericUriParser.cs
- AdjustableArrowCap.cs
- EventProxy.cs
- DataServices.cs
- pingexception.cs
- BaseTreeIterator.cs
- XPathNodeHelper.cs
- SqlTypesSchemaImporter.cs
- MsmqInputSessionChannelListener.cs
- OleDbDataAdapter.cs
- FormsAuthenticationEventArgs.cs
- ClassHandlersStore.cs
- ImageMapEventArgs.cs
- ProgressiveCrcCalculatingStream.cs
- LambdaReference.cs
- AcceleratedTokenProviderState.cs
- ZipIOFileItemStream.cs
- HttpProfileGroupBase.cs
- RelatedEnd.cs
- Activator.cs
- QueryTaskGroupState.cs
- Publisher.cs
- EmbossBitmapEffect.cs
- FrameSecurityDescriptor.cs
- ViewStateModeByIdAttribute.cs
- FrameworkPropertyMetadata.cs
- TreeNodeCollectionEditor.cs
- SystemParameters.cs
- CacheDependency.cs
- AttributedMetaModel.cs
- TransformerConfigurationWizardBase.cs
- ListSourceHelper.cs
- _LoggingObject.cs
- WebBrowsableAttribute.cs
- ProfileModule.cs
- Classification.cs
- Vector3DAnimation.cs
- RequestResizeEvent.cs
- TransformPattern.cs
- SmiEventStream.cs
- RelationshipSet.cs
- WebControlAdapter.cs