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
- SingleAnimationUsingKeyFrames.cs
- SchemaTableColumn.cs
- ImportContext.cs
- TextMarkerSource.cs
- DbQueryCommandTree.cs
- BitmapEffectInput.cs
- ComponentSerializationService.cs
- CachedCompositeFamily.cs
- DataBindingCollection.cs
- InfiniteTimeSpanConverter.cs
- LayeredChannelListener.cs
- TextContainerHelper.cs
- CustomTokenProvider.cs
- FixedDocumentSequencePaginator.cs
- EntitySet.cs
- TargetConverter.cs
- SqlTypesSchemaImporter.cs
- RootBrowserWindowAutomationPeer.cs
- PerformanceCounterPermissionAttribute.cs
- HiddenFieldPageStatePersister.cs
- RIPEMD160.cs
- QuaternionKeyFrameCollection.cs
- ThaiBuddhistCalendar.cs
- TypePropertyEditor.cs
- XamlFigureLengthSerializer.cs
- HostedBindingBehavior.cs
- SplitContainer.cs
- XmlChoiceIdentifierAttribute.cs
- Oci.cs
- ServiceOperationListItem.cs
- EastAsianLunisolarCalendar.cs
- CuspData.cs
- StopRoutingHandler.cs
- TableLayoutStyleCollection.cs
- SQLStringStorage.cs
- DataFormat.cs
- MetadataPropertyvalue.cs
- ReflectionUtil.cs
- SiteMapNodeCollection.cs
- ToolStripDropDownMenu.cs
- HwndProxyElementProvider.cs
- wmiutil.cs
- KnownBoxes.cs
- StringKeyFrameCollection.cs
- ViewRendering.cs
- PenLineJoinValidation.cs
- TemplateControlBuildProvider.cs
- MarginsConverter.cs
- TcpTransportBindingElement.cs
- ParseChildrenAsPropertiesAttribute.cs
- WeakReference.cs
- ProcessHostFactoryHelper.cs
- LambdaCompiler.Binary.cs
- LifetimeServices.cs
- CompressEmulationStream.cs
- LayoutEvent.cs
- TemplateContent.cs
- ButtonFieldBase.cs
- PersistencePipeline.cs
- PageAsyncTask.cs
- DrawListViewSubItemEventArgs.cs
- BitArray.cs
- RecordConverter.cs
- GeometryHitTestResult.cs
- ClientClassGenerator.cs
- PasswordTextNavigator.cs
- HtmlInputText.cs
- AbandonedMutexException.cs
- FilteredReadOnlyMetadataCollection.cs
- WebPartTransformerAttribute.cs
- InternalTypeHelper.cs
- HttpCapabilitiesBase.cs
- PolyBezierSegmentFigureLogic.cs
- WebConfigurationHost.cs
- RadioButtonFlatAdapter.cs
- WindowsListViewItemCheckBox.cs
- PrintDocument.cs
- TypeSystem.cs
- ObjectDataSourceStatusEventArgs.cs
- WebPartConnectionsDisconnectVerb.cs
- InternalPermissions.cs
- NonceToken.cs
- ServerType.cs
- ForEachDesigner.xaml.cs
- EdmMember.cs
- Action.cs
- HttpApplicationFactory.cs
- CqlErrorHelper.cs
- SpecialFolderEnumConverter.cs
- LazyTextWriterCreator.cs
- ClientScriptManager.cs
- ObjectDisposedException.cs
- AssociationSetEnd.cs
- WinFormsComponentEditor.cs
- SiteMapHierarchicalDataSourceView.cs
- RawMouseInputReport.cs
- WebPartEventArgs.cs
- LinkClickEvent.cs
- DmlSqlGenerator.cs
- Line.cs