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
- DispatcherHookEventArgs.cs
- CommandBinding.cs
- FileVersion.cs
- XmlArrayItemAttributes.cs
- Transform3D.cs
- WebPartDisplayModeCancelEventArgs.cs
- DynamicDataResources.Designer.cs
- DataGridSortCommandEventArgs.cs
- GenerateScriptTypeAttribute.cs
- Speller.cs
- DatasetMethodGenerator.cs
- BindingContext.cs
- TransformCollection.cs
- AssemblyCache.cs
- TableSectionStyle.cs
- SessionIDManager.cs
- Panel.cs
- ClientSponsor.cs
- CodeVariableReferenceExpression.cs
- DeviceContexts.cs
- SqlDuplicator.cs
- LocalIdKeyIdentifierClause.cs
- ApplicationFileCodeDomTreeGenerator.cs
- _ProxyChain.cs
- PropertyCondition.cs
- MappableObjectManager.cs
- CustomCategoryAttribute.cs
- WindowsFormsHost.cs
- TextEvent.cs
- UrlAuthFailedErrorFormatter.cs
- Header.cs
- RegionIterator.cs
- WebPartExportVerb.cs
- CustomBindingElement.cs
- DaylightTime.cs
- EdgeModeValidation.cs
- returneventsaver.cs
- SelectQueryOperator.cs
- WebBrowserHelper.cs
- GrammarBuilderPhrase.cs
- ContractType.cs
- DebuggerAttributes.cs
- TreeNode.cs
- ProcessManager.cs
- Socket.cs
- CqlLexer.cs
- PaperSize.cs
- ReflectionUtil.cs
- EventManager.cs
- Underline.cs
- PropertySourceInfo.cs
- DataObjectMethodAttribute.cs
- MessageDecoder.cs
- DefaultMemberAttribute.cs
- WizardDesigner.cs
- XmlSchemaSequence.cs
- BrowserCapabilitiesFactoryBase.cs
- DataControlButton.cs
- XmlIlTypeHelper.cs
- FormsAuthenticationTicket.cs
- ClientRoleProvider.cs
- WebPartMinimizeVerb.cs
- UrlParameterWriter.cs
- Debug.cs
- TraceProvider.cs
- WebHttpSecurityModeHelper.cs
- xdrvalidator.cs
- VirtualPathUtility.cs
- EventSourceCreationData.cs
- WebBrowserNavigatingEventHandler.cs
- VisualStateGroup.cs
- XamlSerializerUtil.cs
- GZipObjectSerializer.cs
- Item.cs
- CompiledQuery.cs
- AddingNewEventArgs.cs
- Currency.cs
- IntSecurity.cs
- ContentTypeSettingClientMessageFormatter.cs
- Border.cs
- LongCountAggregationOperator.cs
- odbcmetadatacollectionnames.cs
- NamespaceDisplayAutomationPeer.cs
- InputLanguage.cs
- securitycriticaldataformultiplegetandset.cs
- HwndMouseInputProvider.cs
- UpdatableWrapper.cs
- SQLInt64.cs
- ToolStripArrowRenderEventArgs.cs
- EtwTrace.cs
- TypeValidationEventArgs.cs
- ActivityScheduledRecord.cs
- AtomParser.cs
- EncoderFallback.cs
- XmlMapping.cs
- VisualStateManager.cs
- SqlUtil.cs
- DataServiceResponse.cs
- ViewStateModeByIdAttribute.cs
- DNS.cs