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
- HelpKeywordAttribute.cs
- LineUtil.cs
- Point3DKeyFrameCollection.cs
- GeometryModel3D.cs
- NotifyInputEventArgs.cs
- DataGrid.cs
- DataGridViewColumnHeaderCell.cs
- CustomValidator.cs
- Internal.cs
- CreateParams.cs
- XamlUtilities.cs
- WorkflowRuntimeSection.cs
- MaterialCollection.cs
- ServiceObjectContainer.cs
- HyperLink.cs
- SqlMethodCallConverter.cs
- X509LogoTypeExtension.cs
- Material.cs
- ASCIIEncoding.cs
- ValidatorCollection.cs
- DataGridViewDataErrorEventArgs.cs
- WebEventTraceProvider.cs
- XamlPointCollectionSerializer.cs
- AbsoluteQuery.cs
- GridToolTip.cs
- XmlSchemaAttributeGroup.cs
- CircleHotSpot.cs
- WebPartHelpVerb.cs
- GeometryGroup.cs
- ObjectManager.cs
- DataGridViewSelectedColumnCollection.cs
- XmlSchemaAll.cs
- SpeakProgressEventArgs.cs
- GetReadStreamResult.cs
- RegisteredDisposeScript.cs
- EventEntry.cs
- XmlSchemaFacet.cs
- VectorCollectionConverter.cs
- DataBindEngine.cs
- KeyToListMap.cs
- FillBehavior.cs
- StateMachineHelpers.cs
- PropertyDescriptorComparer.cs
- AccessDataSourceView.cs
- CalendarDateRangeChangingEventArgs.cs
- XmlSchemaSequence.cs
- StorageEntityContainerMapping.cs
- TransformerInfoCollection.cs
- ImmComposition.cs
- PropertyKey.cs
- ErasingStroke.cs
- DbConnectionFactory.cs
- SQLCharsStorage.cs
- mansign.cs
- SystemIcmpV6Statistics.cs
- Win32.cs
- SyntaxCheck.cs
- HtmlInputButton.cs
- InteropExecutor.cs
- TypeToTreeConverter.cs
- WinEventQueueItem.cs
- DispatcherObject.cs
- UpdatePanel.cs
- ObjectDataSourceFilteringEventArgs.cs
- TextRenderer.cs
- SiteMapSection.cs
- PeekCompletedEventArgs.cs
- ILGenerator.cs
- MergePropertyDescriptor.cs
- ContextBase.cs
- EdmItemError.cs
- Error.cs
- DiagnosticsConfigurationHandler.cs
- WebBrowserNavigatedEventHandler.cs
- Sql8ExpressionRewriter.cs
- ConfigurationSectionCollection.cs
- StoreContentChangedEventArgs.cs
- FontFamily.cs
- LockedHandleGlyph.cs
- HttpCachePolicy.cs
- Size.cs
- GeometryCombineModeValidation.cs
- DockProviderWrapper.cs
- RuleSettingsCollection.cs
- TemplateGroupCollection.cs
- StrokeFIndices.cs
- TemplatedWizardStep.cs
- SemaphoreFullException.cs
- ConstraintManager.cs
- TraceSwitch.cs
- CheckBoxPopupAdapter.cs
- OdbcErrorCollection.cs
- SchemaNotation.cs
- HandlerBase.cs
- WebPartZoneBaseDesigner.cs
- SqlReorderer.cs
- PenThreadPool.cs
- RangeValueProviderWrapper.cs
- BinaryWriter.cs
- CodeMemberField.cs