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
- CookielessHelper.cs
- ConnectionPoolManager.cs
- CodeLinePragma.cs
- TableAutomationPeer.cs
- ActiveXSite.cs
- OdbcConnectionStringbuilder.cs
- ConfigurationSection.cs
- PageRequestManager.cs
- FeatureSupport.cs
- PrePrepareMethodAttribute.cs
- XmlSchemaElement.cs
- HierarchicalDataSourceConverter.cs
- SoapExtensionStream.cs
- CustomAttributeFormatException.cs
- Stackframe.cs
- ScriptResourceHandler.cs
- HttpWriter.cs
- KeySpline.cs
- CommonDialog.cs
- InkCanvasInnerCanvas.cs
- SystemEvents.cs
- TextStore.cs
- EncryptedHeader.cs
- GlyphInfoList.cs
- AddInSegmentDirectoryNotFoundException.cs
- _NegotiateClient.cs
- SiteMapDataSource.cs
- peersecuritysettings.cs
- HtmlControlPersistable.cs
- ApplicationException.cs
- SimpleWebHandlerParser.cs
- TrimSurroundingWhitespaceAttribute.cs
- StringValidatorAttribute.cs
- SwitchExpression.cs
- DecryptedHeader.cs
- UserCancellationException.cs
- Stack.cs
- FrameAutomationPeer.cs
- ScalarConstant.cs
- AdapterUtil.cs
- DataControlButton.cs
- GridViewUpdatedEventArgs.cs
- SineEase.cs
- CommonDialog.cs
- Unit.cs
- DispatcherOperation.cs
- PropertyEmitter.cs
- CacheChildrenQuery.cs
- TextEditorMouse.cs
- ComPlusTypeValidator.cs
- FastEncoderWindow.cs
- Visual3DCollection.cs
- ViewValidator.cs
- parserscommon.cs
- DashStyle.cs
- Rect.cs
- InvalidOperationException.cs
- FontFamily.cs
- XmlSchemaAttributeGroup.cs
- XamlPointCollectionSerializer.cs
- DisplayInformation.cs
- DesignerResources.cs
- SqlLiftIndependentRowExpressions.cs
- ProxyGenerator.cs
- UpdatePanelTriggerCollection.cs
- MiniLockedBorderGlyph.cs
- RemoteWebConfigurationHostStream.cs
- KerberosRequestorSecurityToken.cs
- CollectionViewGroupRoot.cs
- unsafenativemethodsother.cs
- DataBindEngine.cs
- Point.cs
- WebPartConnectionsCancelVerb.cs
- Simplifier.cs
- HtmlImage.cs
- DrawListViewSubItemEventArgs.cs
- WebPartEditorOkVerb.cs
- DomainUpDown.cs
- LowerCaseStringConverter.cs
- PageVisual.cs
- ByteStack.cs
- SmtpNtlmAuthenticationModule.cs
- PathFigureCollection.cs
- ToolStripHighContrastRenderer.cs
- X509ChainElement.cs
- NameValueConfigurationElement.cs
- ListManagerBindingsCollection.cs
- odbcmetadatacolumnnames.cs
- SchemaEntity.cs
- ExpressionBindings.cs
- SortQuery.cs
- TableLayoutStyle.cs
- SchemaSetCompiler.cs
- Triangle.cs
- RectangleGeometry.cs
- UIntPtr.cs
- Parser.cs
- EpmSourcePathSegment.cs
- GridViewEditEventArgs.cs
- PictureBoxDesigner.cs