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
- IntermediatePolicyValidator.cs
- ServiceHost.cs
- HtmlToClrEventProxy.cs
- DetailsViewModeEventArgs.cs
- TreeNodeConverter.cs
- MailHeaderInfo.cs
- ArraySet.cs
- ZipFileInfo.cs
- AnimationException.cs
- ThemeDirectoryCompiler.cs
- DayRenderEvent.cs
- RadioButton.cs
- Cursors.cs
- HwndSubclass.cs
- UInt16Storage.cs
- WhileDesigner.cs
- filewebrequest.cs
- BatchWriter.cs
- GenericEnumerator.cs
- WindowsNonControl.cs
- BrowserCapabilitiesCodeGenerator.cs
- CopyAttributesAction.cs
- Camera.cs
- PropertyConverter.cs
- DataFormat.cs
- DropDownHolder.cs
- RequestContext.cs
- SimpleFileLog.cs
- LinqDataSourceHelper.cs
- XsltQilFactory.cs
- PersistenceTypeAttribute.cs
- SafeThemeHandle.cs
- HtmlInputButton.cs
- AuthenticationSchemesHelper.cs
- ConfigsHelper.cs
- WindowsFormsSectionHandler.cs
- TabPanel.cs
- WebPartHeaderCloseVerb.cs
- DebugControllerThread.cs
- ConfigXmlSignificantWhitespace.cs
- LightweightCodeGenerator.cs
- Cursors.cs
- configsystem.cs
- CurrentChangedEventManager.cs
- _LazyAsyncResult.cs
- DataBindingHandlerAttribute.cs
- RouteParametersHelper.cs
- HoistedLocals.cs
- TemplatedWizardStep.cs
- Char.cs
- Query.cs
- OpenFileDialog.cs
- CharConverter.cs
- XmlSerializer.cs
- HtmlProps.cs
- DispatchRuntime.cs
- FigureParaClient.cs
- XmlSchemaSimpleContentExtension.cs
- DependencyObjectPropertyDescriptor.cs
- ResourceDefaultValueAttribute.cs
- CodeSnippetExpression.cs
- MethodRental.cs
- ScriptHandlerFactory.cs
- pingexception.cs
- _NegoState.cs
- URLIdentityPermission.cs
- IgnoreFileBuildProvider.cs
- ContentDisposition.cs
- ArraySortHelper.cs
- DataGridViewControlCollection.cs
- ThemeDictionaryExtension.cs
- ECDiffieHellman.cs
- InputReferenceExpression.cs
- DataGridTextBoxColumn.cs
- DbModificationCommandTree.cs
- RemoveStoryboard.cs
- EntityWithChangeTrackerStrategy.cs
- ProxyManager.cs
- CryptoStream.cs
- XmlElementAttribute.cs
- EntityDesignerBuildProvider.cs
- InternalCache.cs
- ClusterRegistryConfigurationProvider.cs
- UriWriter.cs
- BitmapEffectDrawingContent.cs
- DispatchProxy.cs
- BuildProvidersCompiler.cs
- BigInt.cs
- BinaryObjectReader.cs
- ToolStripItemBehavior.cs
- PreviewPrintController.cs
- SubtreeProcessor.cs
- ExpandSegmentCollection.cs
- ContainerUtilities.cs
- TextServicesProperty.cs
- RoleGroup.cs
- AspNetHostingPermission.cs
- HostDesigntimeLicenseContext.cs
- TextElement.cs
- DataIdProcessor.cs