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
- SimpleBitVector32.cs
- TableLayoutPanelCodeDomSerializer.cs
- Line.cs
- ContractHandle.cs
- NullableFloatAverageAggregationOperator.cs
- DependencyObjectType.cs
- MessageBox.cs
- Funcletizer.cs
- AssertUtility.cs
- ToolStripOverflowButton.cs
- HotSpot.cs
- TraceData.cs
- WindowAutomationPeer.cs
- ClientConfigurationSystem.cs
- DurableMessageDispatchInspector.cs
- CodeTypeReferenceExpression.cs
- QueryExtender.cs
- ThicknessConverter.cs
- Matrix3DConverter.cs
- ContainerUtilities.cs
- ToolStripRenderEventArgs.cs
- HyperlinkAutomationPeer.cs
- DbParameterHelper.cs
- SafeNativeMethodsOther.cs
- JsonUriDataContract.cs
- DocumentOrderQuery.cs
- Attachment.cs
- Renderer.cs
- connectionpool.cs
- SoapInteropTypes.cs
- TraceInternal.cs
- MobileControlsSection.cs
- XmlException.cs
- Evaluator.cs
- HtmlShimManager.cs
- CodePropertyReferenceExpression.cs
- UInt32.cs
- ReverseInheritProperty.cs
- PingOptions.cs
- LocalizationCodeDomSerializer.cs
- XmlSchemaIdentityConstraint.cs
- CachedTypeface.cs
- CompoundFileStorageReference.cs
- BaseDataList.cs
- Schema.cs
- dbenumerator.cs
- ListViewHitTestInfo.cs
- PropertyHelper.cs
- ApplyImportsAction.cs
- recordstatefactory.cs
- MeshGeometry3D.cs
- BinaryMessageEncodingBindingElement.cs
- RequestTimeoutManager.cs
- MediaPlayerState.cs
- WebResponse.cs
- AutomationPropertyInfo.cs
- SelectingProviderEventArgs.cs
- RouteItem.cs
- AddIn.cs
- MimeTypePropertyAttribute.cs
- xmlformatgeneratorstatics.cs
- PageRequestManager.cs
- Preprocessor.cs
- SetterTriggerConditionValueConverter.cs
- DrawingImage.cs
- Int32Animation.cs
- PostBackOptions.cs
- DocumentXmlWriter.cs
- XPathNodeList.cs
- XmlSchemaInfo.cs
- MetadataPropertyvalue.cs
- iisPickupDirectory.cs
- CollectionBase.cs
- AsyncOperation.cs
- XmlSchemaAll.cs
- SettingsBindableAttribute.cs
- DataGridViewBindingCompleteEventArgs.cs
- GridViewRowEventArgs.cs
- HtmlTitle.cs
- StdRegProviderWrapper.cs
- Rect3DValueSerializer.cs
- CustomPopupPlacement.cs
- ViewManager.cs
- XamlClipboardData.cs
- ToolStripMenuItem.cs
- BinaryCommonClasses.cs
- Collection.cs
- KeyTimeConverter.cs
- SmtpTransport.cs
- DataRelationPropertyDescriptor.cs
- RequestBringIntoViewEventArgs.cs
- BindingOperations.cs
- _AuthenticationState.cs
- BindingElement.cs
- UserControlAutomationPeer.cs
- Base64Stream.cs
- listitem.cs
- NonVisualControlAttribute.cs
- CollectionViewGroupInternal.cs
- ApplicationSecurityInfo.cs