Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- StringArrayEditor.cs
- DataServiceQueryException.cs
- WebPartDisplayModeCollection.cs
- GetKeyedHashRequest.cs
- Double.cs
- HttpRuntimeSection.cs
- GiveFeedbackEventArgs.cs
- HelpKeywordAttribute.cs
- WebControl.cs
- ListItemViewAttribute.cs
- MdiWindowListStrip.cs
- SubclassTypeValidator.cs
- DPCustomTypeDescriptor.cs
- RootBrowserWindow.cs
- XmlUtil.cs
- InstanceLockLostException.cs
- UrlPropertyAttribute.cs
- WizardStepBase.cs
- MessageQueuePermissionEntry.cs
- ReadOnlyDataSource.cs
- ModifierKeysValueSerializer.cs
- DefaultBinder.cs
- SecureUICommand.cs
- Win32MouseDevice.cs
- SymLanguageVendor.cs
- BitmapCodecInfoInternal.cs
- ViewManagerAttribute.cs
- ParallelRangeManager.cs
- Rijndael.cs
- ModifiableIteratorCollection.cs
- ExpressionNormalizer.cs
- GPPOINTF.cs
- ExpressionLexer.cs
- BinarySerializer.cs
- FolderBrowserDialog.cs
- ModulesEntry.cs
- CodeRemoveEventStatement.cs
- GregorianCalendar.cs
- BrowserCapabilitiesFactoryBase.cs
- EventLogReader.cs
- ToolStripItemGlyph.cs
- XamlFigureLengthSerializer.cs
- ScriptControl.cs
- ConfigurationFileMap.cs
- UserPersonalizationStateInfo.cs
- MsmqProcessProtocolHandler.cs
- ListContractAdapter.cs
- _CookieModule.cs
- TextTreeInsertElementUndoUnit.cs
- JumpList.cs
- FixedStringLookup.cs
- IsolatedStorage.cs
- elementinformation.cs
- ComAdminWrapper.cs
- XsdDuration.cs
- Vector3DCollectionConverter.cs
- IResourceProvider.cs
- TypeConverterValueSerializer.cs
- XPathConvert.cs
- RowTypePropertyElement.cs
- DataGridViewRowPrePaintEventArgs.cs
- PackageRelationshipCollection.cs
- EntityDesignerDataSourceView.cs
- CodeDirectionExpression.cs
- TextEditorCopyPaste.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- HttpVersion.cs
- GridViewPageEventArgs.cs
- NativeMethods.cs
- MatrixConverter.cs
- ContentWrapperAttribute.cs
- CacheEntry.cs
- InstanceDataCollection.cs
- ToolboxCategory.cs
- ChtmlTextWriter.cs
- QueryParameter.cs
- LinkLabelLinkClickedEvent.cs
- ClientCultureInfo.cs
- DataSetUtil.cs
- WindowsGrip.cs
- NativeMethods.cs
- CodeMemberEvent.cs
- ProcessRequestArgs.cs
- DockPattern.cs
- TrackBar.cs
- JsonGlobals.cs
- PersistChildrenAttribute.cs
- MissingFieldException.cs
- CalendarAutoFormat.cs
- XPathEmptyIterator.cs
- MessageBox.cs
- Array.cs
- RolePrincipal.cs
- OracleConnectionStringBuilder.cs
- TextParagraphView.cs
- CheckPair.cs
- ClientBuildManager.cs
- GridLength.cs
- StylusDownEventArgs.cs
- DelayedRegex.cs