Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- CaseCqlBlock.cs
- InstanceLockTracking.cs
- SettingsBindableAttribute.cs
- Vector3D.cs
- LocalizedNameDescriptionPair.cs
- HtmlInputHidden.cs
- _ConnectOverlappedAsyncResult.cs
- TypeUtil.cs
- SqlErrorCollection.cs
- TogglePatternIdentifiers.cs
- LinqDataView.cs
- RepeatBehaviorConverter.cs
- PeerNearMe.cs
- SQLChars.cs
- DataGridViewTextBoxColumn.cs
- DesignTimeVisibleAttribute.cs
- WindowsStreamSecurityUpgradeProvider.cs
- datacache.cs
- TerminatorSinks.cs
- mda.cs
- ExpressionLexer.cs
- DataServices.cs
- PointConverter.cs
- DataRowView.cs
- XmlIlGenerator.cs
- ThicknessKeyFrameCollection.cs
- ToolStripTextBox.cs
- ResXResourceSet.cs
- UserControlAutomationPeer.cs
- DependencyObjectValidator.cs
- HexParser.cs
- PropVariant.cs
- DataGridColumnCollection.cs
- HtmlImage.cs
- DataGridrowEditEndingEventArgs.cs
- EntityViewGenerationConstants.cs
- InkPresenterAutomationPeer.cs
- StateDesignerConnector.cs
- SmiGettersStream.cs
- AssemblyCache.cs
- ObjectPersistData.cs
- ProcessModelInfo.cs
- HostSecurityManager.cs
- ReplyAdapterChannelListener.cs
- TypeConverterHelper.cs
- TextBreakpoint.cs
- X509SecurityTokenProvider.cs
- HttpAsyncResult.cs
- ButtonAutomationPeer.cs
- BoolLiteral.cs
- NativeMethods.cs
- ListViewCommandEventArgs.cs
- Rijndael.cs
- MULTI_QI.cs
- NavigationFailedEventArgs.cs
- ProtocolElementCollection.cs
- Int32.cs
- AstNode.cs
- FontFamilyIdentifier.cs
- CaseKeyBox.xaml.cs
- HMAC.cs
- BitmapSizeOptions.cs
- LinqDataSourceHelper.cs
- PointHitTestParameters.cs
- InstanceDataCollectionCollection.cs
- VisualStates.cs
- ServiceDesigner.cs
- RouteValueExpressionBuilder.cs
- SamlSubject.cs
- ListMarkerLine.cs
- OdbcParameter.cs
- DataGridViewCellValidatingEventArgs.cs
- ElementNotEnabledException.cs
- SymLanguageVendor.cs
- RepeatBehaviorConverter.cs
- XmlAttributeOverrides.cs
- FileEnumerator.cs
- EdmMember.cs
- ILGenerator.cs
- SqlHelper.cs
- WindowHideOrCloseTracker.cs
- SendKeys.cs
- ControlPropertyNameConverter.cs
- AnnotationComponentManager.cs
- XsdDataContractExporter.cs
- TemplateControl.cs
- JsonServiceDocumentSerializer.cs
- DataSourceHelper.cs
- HostAdapter.cs
- SortedDictionary.cs
- ValidatingPropertiesEventArgs.cs
- ListItemParagraph.cs
- CodeAttributeDeclaration.cs
- FigureHelper.cs
- DotNetATv1WindowsLogEntrySerializer.cs
- nulltextcontainer.cs
- EntityProviderServices.cs
- StringUtil.cs
- _ListenerAsyncResult.cs
- CustomError.cs