Code:
/ FX-1434 / FX-1434 / 1.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
- TypeExtension.cs
- ProvidePropertyAttribute.cs
- EntityCommandDefinition.cs
- TableCellCollection.cs
- ImageListStreamer.cs
- AmbientLight.cs
- PropertyRef.cs
- NavigationFailedEventArgs.cs
- CacheRequest.cs
- TypeDescriptor.cs
- WebPartConnectionsEventArgs.cs
- TabOrder.cs
- RegexCapture.cs
- util.cs
- DataRow.cs
- SiteMapProvider.cs
- PersonalizationAdministration.cs
- Reference.cs
- SqlRetyper.cs
- ObjectPersistData.cs
- SmtpNegotiateAuthenticationModule.cs
- ExpandoObject.cs
- DataGridViewDataConnection.cs
- ValidatorCollection.cs
- BufferedGraphicsContext.cs
- XmlTextReaderImplHelpers.cs
- DependencyPropertyDescriptor.cs
- WebAdminConfigurationHelper.cs
- MatrixValueSerializer.cs
- TextCollapsingProperties.cs
- RSAProtectedConfigurationProvider.cs
- ExtenderControl.cs
- VerificationException.cs
- RoutedEvent.cs
- httpapplicationstate.cs
- GeometryConverter.cs
- StrokeCollectionDefaultValueFactory.cs
- PartitionResolver.cs
- PrivilegeNotHeldException.cs
- SharedConnectionInfo.cs
- HashRepartitionEnumerator.cs
- XmlSerializerSection.cs
- ParallelTimeline.cs
- NestPullup.cs
- ToolTipAutomationPeer.cs
- ManualResetEvent.cs
- ContextProperty.cs
- DeviceSpecific.cs
- AsyncStreamReader.cs
- SystemKeyConverter.cs
- EntityDesignerUtils.cs
- ErrorFormatter.cs
- RijndaelManaged.cs
- ObjectListSelectEventArgs.cs
- FullTextLine.cs
- TreeViewCancelEvent.cs
- XPathItem.cs
- DynamicPropertyReader.cs
- IconConverter.cs
- SqlConnectionHelper.cs
- WebPermission.cs
- LocalizabilityAttribute.cs
- DetailsViewAutoFormat.cs
- EntityDesignPluralizationHandler.cs
- DecoderExceptionFallback.cs
- SchemaImporterExtensionsSection.cs
- AssemblyAttributesGoHere.cs
- DesignerDataTableBase.cs
- ComboBoxItem.cs
- Base64Encoder.cs
- xamlnodes.cs
- ExecutionTracker.cs
- ComponentManagerBroker.cs
- XmlHierarchicalDataSourceView.cs
- NameObjectCollectionBase.cs
- XPathAncestorIterator.cs
- ItemTypeToolStripMenuItem.cs
- OdbcDataAdapter.cs
- EncryptedPackage.cs
- SubpageParagraph.cs
- MaterialGroup.cs
- Rotation3DAnimationUsingKeyFrames.cs
- CurrentChangedEventManager.cs
- GenericFlowSwitchHelper.cs
- EventLogWatcher.cs
- SchemaElementLookUpTable.cs
- CodeEntryPointMethod.cs
- Token.cs
- InputEventArgs.cs
- mda.cs
- TextSchema.cs
- WebPartDisplayMode.cs
- DateTimeOffsetAdapter.cs
- TypeBuilderInstantiation.cs
- PeerNameRecord.cs
- SocketException.cs
- BindableAttribute.cs
- XamlParser.cs
- HttpServerVarsCollection.cs
- UnauthorizedWebPart.cs