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
- _ListenerAsyncResult.cs
- WindowsIdentity.cs
- MetadataFile.cs
- Rect3DConverter.cs
- WebHttpSecurityModeHelper.cs
- StyleXamlParser.cs
- BuildProvider.cs
- FileReader.cs
- TableRowsCollectionEditor.cs
- MailBnfHelper.cs
- XmlHierarchicalDataSourceView.cs
- XmlSchemaSimpleContentRestriction.cs
- HttpContextBase.cs
- ProtectedConfigurationProviderCollection.cs
- LassoSelectionBehavior.cs
- UrlPath.cs
- ListManagerBindingsCollection.cs
- AnimatedTypeHelpers.cs
- CodeCastExpression.cs
- CodeGenerator.cs
- OpCodes.cs
- XmlSchemaInfo.cs
- SiteMapNode.cs
- IndentTextWriter.cs
- HostingEnvironmentSection.cs
- UpdatePanelTriggerCollection.cs
- TableLayoutPanelResizeGlyph.cs
- RowSpanVector.cs
- RemotingConfiguration.cs
- SHA1.cs
- XmlSchemaExternal.cs
- AppDomainCompilerProxy.cs
- ActivityValidator.cs
- CapabilitiesState.cs
- ImageFormat.cs
- Missing.cs
- SqlDataSourceConfigureSelectPanel.cs
- HTTPNotFoundHandler.cs
- StreamAsIStream.cs
- DirectoryInfo.cs
- DelegateSerializationHolder.cs
- RecognizedWordUnit.cs
- CodeObject.cs
- HMACSHA256.cs
- VisualTreeHelper.cs
- ThicknessKeyFrameCollection.cs
- InheritanceRules.cs
- SrgsRule.cs
- PersonalizationProvider.cs
- RoleManagerModule.cs
- KeySpline.cs
- DataSourceControlBuilder.cs
- SystemResourceKey.cs
- ConfigurationValidatorAttribute.cs
- ProfilePropertySettingsCollection.cs
- ObjectItemNoOpAssemblyLoader.cs
- FileChangeNotifier.cs
- HttpModuleActionCollection.cs
- DbBuffer.cs
- GeometryGroup.cs
- StackSpiller.cs
- OracleCommand.cs
- ArrangedElementCollection.cs
- FormClosingEvent.cs
- DataGridCell.cs
- AnnouncementEndpoint.cs
- TimerTable.cs
- PassportPrincipal.cs
- CaseInsensitiveComparer.cs
- NameTable.cs
- hresults.cs
- WizardPanelChangingEventArgs.cs
- SymmetricAlgorithm.cs
- addressfiltermode.cs
- SqlTopReducer.cs
- ToolBarButton.cs
- LineMetrics.cs
- XmlNullResolver.cs
- wmiprovider.cs
- SimplePropertyEntry.cs
- SecurityKeyIdentifierClause.cs
- QuaternionRotation3D.cs
- CreateBookmarkScope.cs
- AnonymousIdentificationSection.cs
- ToolboxCategory.cs
- GeneralTransformGroup.cs
- BindingManagerDataErrorEventArgs.cs
- DummyDataSource.cs
- PointLightBase.cs
- _KerberosClient.cs
- RoleManagerModule.cs
- GridLengthConverter.cs
- SqlFlattener.cs
- PeerNameRegistration.cs
- ToolStripTextBox.cs
- TextBoxAutoCompleteSourceConverter.cs
- MatrixIndependentAnimationStorage.cs
- ParameterElementCollection.cs
- Automation.cs
- OutputCacheProviderCollection.cs