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
- RegisteredHiddenField.cs
- SoapHeaders.cs
- InputLanguageManager.cs
- XmlSerializer.cs
- PropertyGridEditorPart.cs
- PersonalizationStateInfoCollection.cs
- DynamicValueConverter.cs
- VolatileEnlistmentState.cs
- DataServiceRequest.cs
- XmlSerializationReader.cs
- TextServicesProperty.cs
- XmlQueryStaticData.cs
- BitHelper.cs
- TextBoxLine.cs
- ScrollProviderWrapper.cs
- PropertyDescriptorGridEntry.cs
- SudsCommon.cs
- Schema.cs
- JsonReaderDelegator.cs
- GridViewColumn.cs
- ExpressionWriter.cs
- DataReceivedEventArgs.cs
- ToolStripDropDownMenu.cs
- ProxyWebPart.cs
- CompensatableSequenceActivity.cs
- WindowsFormsHostAutomationPeer.cs
- FilteredAttributeCollection.cs
- RowCache.cs
- WebRequest.cs
- ObjectListComponentEditor.cs
- BackgroundFormatInfo.cs
- SqlClientWrapperSmiStream.cs
- HtmlShim.cs
- CookielessHelper.cs
- TcpSocketManager.cs
- StringValueSerializer.cs
- OleServicesContext.cs
- ConvertTextFrag.cs
- FilterableAttribute.cs
- DataTableClearEvent.cs
- FrameworkObject.cs
- XmlObjectSerializerWriteContext.cs
- CacheVirtualItemsEvent.cs
- _NestedMultipleAsyncResult.cs
- DuplicateWaitObjectException.cs
- QueryStringParameter.cs
- HtmlInputCheckBox.cs
- Compensation.cs
- InkCanvasAutomationPeer.cs
- MenuItemBinding.cs
- ObjectReaderCompiler.cs
- storepermissionattribute.cs
- BindValidator.cs
- FixUp.cs
- AnnotationHelper.cs
- HttpListenerRequest.cs
- SystemFonts.cs
- Grant.cs
- SQLByte.cs
- BindingGroup.cs
- MethodRental.cs
- CodeAttachEventStatement.cs
- SqlRowUpdatedEvent.cs
- DataFormat.cs
- X509UI.cs
- DiagnosticsConfigurationHandler.cs
- WCFModelStrings.Designer.cs
- MenuItemBinding.cs
- IProducerConsumerCollection.cs
- SamlAssertion.cs
- ProvidersHelper.cs
- XmlText.cs
- WebPartUtil.cs
- XPathQueryGenerator.cs
- InfoCardBaseException.cs
- TypeResolver.cs
- DragEvent.cs
- BooleanToVisibilityConverter.cs
- GenericsNotImplementedException.cs
- DataContractAttribute.cs
- WinInetCache.cs
- CodeLinePragma.cs
- CurrencyWrapper.cs
- DiscardableAttribute.cs
- BackgroundFormatInfo.cs
- CalendarDateRangeChangingEventArgs.cs
- UpDownEvent.cs
- DesignerSerializationOptionsAttribute.cs
- _DigestClient.cs
- WebPartEventArgs.cs
- TextTreeNode.cs
- DataContractSerializerElement.cs
- CellParagraph.cs
- BamlLocalizableResourceKey.cs
- ScriptServiceAttribute.cs
- BitArray.cs
- NetworkInformationException.cs
- ResourcePermissionBaseEntry.cs
- FileDataSourceCache.cs
- ListParagraph.cs