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
- QuaternionKeyFrameCollection.cs
- AttachedPropertyBrowsableAttribute.cs
- LocationSectionRecord.cs
- Stopwatch.cs
- InlineObject.cs
- CatalogPart.cs
- InProcStateClientManager.cs
- ComponentManagerBroker.cs
- CultureInfoConverter.cs
- WorkflowCreationContext.cs
- InkCanvasSelectionAdorner.cs
- ToolStripDropDown.cs
- DbDeleteCommandTree.cs
- WindowsAuthenticationEventArgs.cs
- AutomationElementIdentifiers.cs
- ParallelTimeline.cs
- PartitionerQueryOperator.cs
- ButtonBaseAdapter.cs
- ForceCopyBuildProvider.cs
- DictionaryEntry.cs
- ConfigurationPropertyCollection.cs
- WebPartDisplayModeEventArgs.cs
- Module.cs
- RowUpdatingEventArgs.cs
- ExecutionEngineException.cs
- TagNameToTypeMapper.cs
- PropertyHelper.cs
- Label.cs
- OdbcException.cs
- GenericUriParser.cs
- WebPartHelpVerb.cs
- CompressionTransform.cs
- Pen.cs
- WindowsProgressbar.cs
- TraceHandlerErrorFormatter.cs
- Property.cs
- DbParameterCollectionHelper.cs
- RelatedCurrencyManager.cs
- Positioning.cs
- ComPlusThreadInitializer.cs
- DelegatingConfigHost.cs
- MasterPageBuildProvider.cs
- DynamicMetaObjectBinder.cs
- ContentType.cs
- Update.cs
- TextWriter.cs
- SettingsAttributes.cs
- CertificateManager.cs
- EntityParameter.cs
- PageParser.cs
- DeploymentSection.cs
- WebPartMovingEventArgs.cs
- AccessDataSourceView.cs
- OleDbParameterCollection.cs
- TextBoxRenderer.cs
- StyleSelector.cs
- SqlProcedureAttribute.cs
- XmlMemberMapping.cs
- PointLight.cs
- CompositeDataBoundControl.cs
- GenericXmlSecurityToken.cs
- SettingsSavedEventArgs.cs
- SQLDateTime.cs
- PagedDataSource.cs
- Byte.cs
- UndirectedGraph.cs
- PageThemeBuildProvider.cs
- ObjectTag.cs
- SoapUnknownHeader.cs
- basecomparevalidator.cs
- RemotingHelper.cs
- DesignerCapabilities.cs
- hebrewshape.cs
- BaseCollection.cs
- WmlTextBoxAdapter.cs
- SystemGatewayIPAddressInformation.cs
- NativeMethods.cs
- BitmapFrame.cs
- RemoteCryptoTokenProvider.cs
- MarkerProperties.cs
- Base64Stream.cs
- WindowsToolbar.cs
- SafeNativeMethodsCLR.cs
- UntypedNullExpression.cs
- RawKeyboardInputReport.cs
- LicenseContext.cs
- DataGridAutoFormat.cs
- RegexNode.cs
- SQLInt16Storage.cs
- TableLayoutSettingsTypeConverter.cs
- ToolStripContentPanel.cs
- COM2Enum.cs
- SymmetricAlgorithm.cs
- PolicyException.cs
- CounterCreationDataConverter.cs
- ParserHooks.cs
- IOException.cs
- XPathNodeHelper.cs
- LicenseProviderAttribute.cs
- ResourceLoader.cs