Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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(); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BamlTreeMap.cs
- HtmlDocument.cs
- IISUnsafeMethods.cs
- WindowsListViewScroll.cs
- XmlSchemaComplexContentExtension.cs
- ExtractedStateEntry.cs
- TripleDES.cs
- Serializer.cs
- WindowsIPAddress.cs
- DataViewSetting.cs
- StorageModelBuildProvider.cs
- TextTreeDeleteContentUndoUnit.cs
- SizeIndependentAnimationStorage.cs
- brushes.cs
- ExtentCqlBlock.cs
- MailAddressCollection.cs
- CalendarDesigner.cs
- SkipQueryOptionExpression.cs
- followingsibling.cs
- NetworkInformationPermission.cs
- SynchronizationFilter.cs
- ConditionedDesigner.cs
- TTSEvent.cs
- AssemblyInfo.cs
- ThemeInfoAttribute.cs
- DesignerLoader.cs
- RegexCompiler.cs
- DataContractJsonSerializerOperationFormatter.cs
- CheckableControlBaseAdapter.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- URLString.cs
- SliderAutomationPeer.cs
- XPathEmptyIterator.cs
- TableHeaderCell.cs
- XamlSerializerUtil.cs
- CommandID.cs
- ReflectionHelper.cs
- DataServiceBuildProvider.cs
- EntityDataSourceSelectingEventArgs.cs
- TypeDependencyAttribute.cs
- HTMLTagNameToTypeMapper.cs
- ServiceReference.cs
- FileBasedResourceGroveler.cs
- PerfService.cs
- DesigntimeLicenseContext.cs
- TypeSystemProvider.cs
- ConnectionManagementSection.cs
- JoinTreeNode.cs
- X509ClientCertificateCredentialsElement.cs
- HttpFileCollection.cs
- CompilationUtil.cs
- EntityStoreSchemaFilterEntry.cs
- HandlerFactoryWrapper.cs
- SQLGuidStorage.cs
- ButtonColumn.cs
- XPathDocumentNavigator.cs
- SelectionChangedEventArgs.cs
- ChangeNode.cs
- ServerValidateEventArgs.cs
- EventSinkHelperWriter.cs
- ProgressBarRenderer.cs
- AsymmetricKeyExchangeDeformatter.cs
- TempFiles.cs
- ServiceHostingEnvironment.cs
- ImageFormat.cs
- Point3D.cs
- XsltException.cs
- GlyphCache.cs
- UIntPtr.cs
- TransactionProtocolConverter.cs
- MachineKeySection.cs
- XmlSchemaType.cs
- SqlDataReaderSmi.cs
- MouseGestureValueSerializer.cs
- WindowsFormsLinkLabel.cs
- GifBitmapEncoder.cs
- WebPartsPersonalizationAuthorization.cs
- DesignerAttribute.cs
- SqlProcedureAttribute.cs
- Attributes.cs
- AlgoModule.cs
- DbMetaDataFactory.cs
- ForwardPositionQuery.cs
- XmlTextAttribute.cs
- PkcsMisc.cs
- Environment.cs
- Model3DGroup.cs
- BatchParser.cs
- Crc32.cs
- CachedCompositeFamily.cs
- BitVector32.cs
- bidPrivateBase.cs
- WindowsFormsHelpers.cs
- View.cs
- SoundPlayer.cs
- _CommandStream.cs
- CodeConditionStatement.cs
- SecurityTokenInclusionMode.cs
- BooleanExpr.cs
- SendOperation.cs