Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / LocalizableAttribute.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlFormatReaderGenerator.cs
- TerminateDesigner.cs
- FlowNode.cs
- PathFigureCollectionConverter.cs
- SqlBuilder.cs
- SafeReversePInvokeHandle.cs
- DesignerHelpers.cs
- SiblingIterators.cs
- ReliableSessionBindingElement.cs
- ResetableIterator.cs
- CreateUserWizardStep.cs
- DropShadowEffect.cs
- SqlAliaser.cs
- ClientData.cs
- XmlnsCompatibleWithAttribute.cs
- ToolStripRenderer.cs
- IQueryable.cs
- HttpPostClientProtocol.cs
- ErrorFormatterPage.cs
- CalendarAutoFormat.cs
- HtmlFormParameterWriter.cs
- Vector3DCollectionValueSerializer.cs
- OutputScopeManager.cs
- TrackingLocation.cs
- ObjectListCommandsPage.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- FixedSOMPageElement.cs
- ToolStripItemEventArgs.cs
- MSAAEventDispatcher.cs
- Timeline.cs
- TdsValueSetter.cs
- _CacheStreams.cs
- SoapClientProtocol.cs
- PropertyDescriptorGridEntry.cs
- SerializationException.cs
- BuildManager.cs
- RemotingConfigParser.cs
- InternalCache.cs
- ErrorRuntimeConfig.cs
- SystemIPInterfaceStatistics.cs
- StrokeNodeEnumerator.cs
- ObjectDataSourceDisposingEventArgs.cs
- ExtenderProvidedPropertyAttribute.cs
- RuntimeComponentFilter.cs
- UserCancellationException.cs
- OleCmdHelper.cs
- InlinedAggregationOperator.cs
- ChannelProtectionRequirements.cs
- SectionXmlInfo.cs
- Int32AnimationBase.cs
- BooleanProjectedSlot.cs
- AdapterDictionary.cs
- TextElementEditingBehaviorAttribute.cs
- HttpProfileBase.cs
- RecipientInfo.cs
- Attributes.cs
- DefaultAssemblyResolver.cs
- CreatingCookieEventArgs.cs
- FrameworkContentElement.cs
- MimeImporter.cs
- CapabilitiesPattern.cs
- ObjectContextServiceProvider.cs
- SrgsRulesCollection.cs
- GlyphsSerializer.cs
- XmlSchemaGroup.cs
- SoapSchemaExporter.cs
- Interop.cs
- TextParagraphView.cs
- StrokeRenderer.cs
- QuaternionRotation3D.cs
- UIElementPropertyUndoUnit.cs
- SafeWaitHandle.cs
- ListViewItemMouseHoverEvent.cs
- HttpPostProtocolReflector.cs
- ContractBase.cs
- XpsFixedDocumentSequenceReaderWriter.cs
- DateTimeOffsetStorage.cs
- MediaPlayerState.cs
- RuleSetReference.cs
- TemplateControl.cs
- XmlDataLoader.cs
- HuffModule.cs
- ParameterCollection.cs
- BufferedReceiveElement.cs
- __Error.cs
- NameValuePair.cs
- LocalizedNameDescriptionPair.cs
- UnicodeEncoding.cs
- NumericUpDownAccelerationCollection.cs
- TextTreePropertyUndoUnit.cs
- WCFServiceClientProxyGenerator.cs
- HttpModulesSection.cs
- SystemIPAddressInformation.cs
- SslSecurityTokenParameters.cs
- XmlSchema.cs
- TokenBasedSetEnumerator.cs
- AccessDataSource.cs
- filewebrequest.cs
- ParameterInfo.cs
- NativeCppClassAttribute.cs