Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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
- MonthChangedEventArgs.cs
- VerificationAttribute.cs
- documentsequencetextview.cs
- webproxy.cs
- ModelTreeEnumerator.cs
- XmlNamespaceManager.cs
- BoundPropertyEntry.cs
- InheritanceContextHelper.cs
- HostingEnvironmentException.cs
- XmlSchemaNotation.cs
- TimersDescriptionAttribute.cs
- AssemblyInfo.cs
- Stack.cs
- TraceLevelStore.cs
- RenamedEventArgs.cs
- LineMetrics.cs
- StructuralCache.cs
- Funcletizer.cs
- FormViewInsertedEventArgs.cs
- TypeUnloadedException.cs
- BorderSidesEditor.cs
- PropertyRecord.cs
- DecoratedNameAttribute.cs
- TextEndOfParagraph.cs
- PipeSecurity.cs
- SqlClientMetaDataCollectionNames.cs
- CapabilitiesRule.cs
- PersonalizablePropertyEntry.cs
- FunctionDescription.cs
- Semaphore.cs
- Label.cs
- NamespaceListProperty.cs
- BamlTreeUpdater.cs
- Tile.cs
- GridViewUpdateEventArgs.cs
- WaitForChangedResult.cs
- MessageSecurityOverHttpElement.cs
- BaseInfoTable.cs
- QuestionEventArgs.cs
- ArgIterator.cs
- PolicyUnit.cs
- SqlRowUpdatingEvent.cs
- CompilationPass2Task.cs
- RichTextBoxAutomationPeer.cs
- SplayTreeNode.cs
- EnumerableCollectionView.cs
- TripleDESCryptoServiceProvider.cs
- CodeDelegateInvokeExpression.cs
- HasCopySemanticsAttribute.cs
- MDIWindowDialog.cs
- RelationalExpressions.cs
- CommentEmitter.cs
- FormsAuthenticationConfiguration.cs
- ButtonFieldBase.cs
- XmlName.cs
- NetworkInterface.cs
- ThumbButtonInfoCollection.cs
- Authorization.cs
- Evaluator.cs
- XmlText.cs
- PageStatePersister.cs
- UserControlParser.cs
- InternalsVisibleToAttribute.cs
- PriorityItem.cs
- RenderCapability.cs
- UIElementHelper.cs
- DataTablePropertyDescriptor.cs
- CollectionDataContractAttribute.cs
- RoamingStoreFileUtility.cs
- BitSet.cs
- Item.cs
- InputBindingCollection.cs
- ConfigXmlComment.cs
- OleDbFactory.cs
- translator.cs
- DeclaredTypeElementCollection.cs
- TabControl.cs
- SvcMapFileLoader.cs
- SystemResourceHost.cs
- HtmlShim.cs
- NativeRecognizer.cs
- PerformanceCounterManager.cs
- ListViewItemMouseHoverEvent.cs
- WebBrowserSiteBase.cs
- CryptographicAttribute.cs
- AccessibleObject.cs
- SmiEventSink_Default.cs
- BinaryParser.cs
- StringDictionary.cs
- FixedSOMLineCollection.cs
- SortAction.cs
- DataGridViewCellCollection.cs
- Simplifier.cs
- FormatConvertedBitmap.cs
- ForeignKeyConstraint.cs
- CodeAttributeArgumentCollection.cs
- RawStylusActions.cs
- Matrix.cs
- DeclaredTypeElement.cs
- ByteRangeDownloader.cs