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
- CheckedPointers.cs
- ChannelDispatcherCollection.cs
- Executor.cs
- SrgsOneOf.cs
- DataViewSettingCollection.cs
- ButtonDesigner.cs
- AdornerLayer.cs
- SqlNotificationRequest.cs
- HostSecurityManager.cs
- EntityContainerAssociationSetEnd.cs
- KnowledgeBase.cs
- InputProcessorProfilesLoader.cs
- UniformGrid.cs
- CheckedListBox.cs
- CodeObject.cs
- TheQuery.cs
- LineGeometry.cs
- DynamicAttribute.cs
- UriParserTemplates.cs
- Assembly.cs
- _ShellExpression.cs
- JsonFormatMapping.cs
- Int32CAMarshaler.cs
- ConfigurationManagerInternal.cs
- ProfilePropertyNameValidator.cs
- DataException.cs
- PropertyChangedEventManager.cs
- IRCollection.cs
- FixUpCollection.cs
- CancelEventArgs.cs
- BindingCompleteEventArgs.cs
- mediapermission.cs
- MouseOverProperty.cs
- PageBreakRecord.cs
- FontWeight.cs
- ShaderRenderModeValidation.cs
- SubMenuStyle.cs
- TailCallAnalyzer.cs
- ClosableStream.cs
- RoleService.cs
- ColumnMapTranslator.cs
- ThreadSafeList.cs
- UnSafeCharBuffer.cs
- BuilderPropertyEntry.cs
- MethodExpression.cs
- CompilationLock.cs
- SystemParameters.cs
- SqlProcedureAttribute.cs
- RuleElement.cs
- DataControlPagerLinkButton.cs
- Exceptions.cs
- DoubleCollectionValueSerializer.cs
- SequentialOutput.cs
- BuilderPropertyEntry.cs
- COM2PictureConverter.cs
- NullableIntSumAggregationOperator.cs
- ProcessThreadCollection.cs
- MetadataPropertyCollection.cs
- RemoteDebugger.cs
- TextFragmentEngine.cs
- CompilerResults.cs
- XsltLibrary.cs
- StrokeFIndices.cs
- BamlTreeMap.cs
- ObjectDataSourceEventArgs.cs
- VectorAnimation.cs
- translator.cs
- SubtreeProcessor.cs
- SecurityKeyIdentifier.cs
- PersonalizationStateInfoCollection.cs
- ColorTypeConverter.cs
- MarkupExtensionParser.cs
- Match.cs
- TabPage.cs
- TrackingQuery.cs
- ListenerHandler.cs
- HtmlUtf8RawTextWriter.cs
- HealthMonitoringSectionHelper.cs
- CqlLexer.cs
- MetadataFile.cs
- ObjectMemberMapping.cs
- MethodRental.cs
- Event.cs
- StreamSecurityUpgradeAcceptorAsyncResult.cs
- ApplicationCommands.cs
- Version.cs
- QilPatternVisitor.cs
- NativeActivityAbortContext.cs
- CharEnumerator.cs
- TypedTableBase.cs
- FactoryRecord.cs
- GridViewRowPresenter.cs
- bindurihelper.cs
- CompositeControl.cs
- ImageFormat.cs
- SecurityKeyEntropyMode.cs
- CriticalFinalizerObject.cs
- KeyPullup.cs
- GridView.cs
- smtppermission.cs