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
- MonitoringDescriptionAttribute.cs
- SafeHandles.cs
- JulianCalendar.cs
- HotSpot.cs
- WbemException.cs
- NamespaceMapping.cs
- RequestCache.cs
- ValidationPropertyAttribute.cs
- FloatUtil.cs
- TypedDataSetSchemaImporterExtension.cs
- WarningException.cs
- XsdDataContractExporter.cs
- NativeMethods.cs
- COM2Properties.cs
- DataGridViewDataConnection.cs
- XPathParser.cs
- PriorityQueue.cs
- Header.cs
- Compiler.cs
- CngKeyCreationParameters.cs
- ProviderSettingsCollection.cs
- HMACRIPEMD160.cs
- ContentPlaceHolder.cs
- Emitter.cs
- SecurityTokenAuthenticator.cs
- CompilerParameters.cs
- WindowsTooltip.cs
- GenerateTemporaryTargetAssembly.cs
- StylusTip.cs
- FixedHyperLink.cs
- Int32KeyFrameCollection.cs
- PackWebRequestFactory.cs
- TextSimpleMarkerProperties.cs
- FontNamesConverter.cs
- LinkLabel.cs
- XmlException.cs
- BinaryNode.cs
- AdRotator.cs
- ExpressionPrefixAttribute.cs
- TypeInfo.cs
- Attributes.cs
- CheckPair.cs
- AtomContentProperty.cs
- FileAuthorizationModule.cs
- DataContractSerializerElement.cs
- selecteditemcollection.cs
- HtmlInputCheckBox.cs
- RadioButton.cs
- UnsafeNativeMethodsCLR.cs
- CharEnumerator.cs
- XmlSiteMapProvider.cs
- TraceContextEventArgs.cs
- SHA512Managed.cs
- Condition.cs
- XPathExpr.cs
- DataBindingHandlerAttribute.cs
- DbProviderServices.cs
- ByteStreamGeometryContext.cs
- PageStatePersister.cs
- PlatformNotSupportedException.cs
- OperationAbortedException.cs
- EncodingNLS.cs
- StrokeNode.cs
- MessageDecoder.cs
- PrintDocument.cs
- ChangePasswordDesigner.cs
- CssStyleCollection.cs
- FormViewUpdateEventArgs.cs
- SqlDataSourceView.cs
- DynamicValueConverter.cs
- MouseEvent.cs
- SymLanguageVendor.cs
- DBParameter.cs
- QueryPageSettingsEventArgs.cs
- mongolianshape.cs
- FormatVersion.cs
- ZoneIdentityPermission.cs
- CaseStatement.cs
- OrderingQueryOperator.cs
- HostingEnvironmentSection.cs
- BadImageFormatException.cs
- TextModifierScope.cs
- SqlBulkCopyColumnMappingCollection.cs
- Partitioner.cs
- CommandLineParser.cs
- CatalogZoneAutoFormat.cs
- DashStyles.cs
- ErrorFormatterPage.cs
- DataGridViewColumnEventArgs.cs
- IntellisenseTextBox.cs
- PnrpPermission.cs
- InstanceDataCollectionCollection.cs
- ServerValidateEventArgs.cs
- TrackPoint.cs
- SchemeSettingElementCollection.cs
- TextElementEnumerator.cs
- CompoundFileStorageReference.cs
- RelatedCurrencyManager.cs
- HttpRuntimeSection.cs
- WorkflowQueueInfo.cs