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
- EventLogEntry.cs
- PartManifestEntry.cs
- Models.cs
- BaseParaClient.cs
- ConnectivityStatus.cs
- webeventbuffer.cs
- DesignerExtenders.cs
- XmlNotation.cs
- ComplexBindingPropertiesAttribute.cs
- MimeFormImporter.cs
- WebPartEditVerb.cs
- LoopExpression.cs
- DecimalAnimationUsingKeyFrames.cs
- BaseProcessor.cs
- MSHTMLHost.cs
- DecimalAnimationBase.cs
- InternalControlCollection.cs
- StrongNameMembershipCondition.cs
- BaseValidator.cs
- BufferedGraphicsContext.cs
- Pen.cs
- PrimitiveXmlSerializers.cs
- WebPartChrome.cs
- StaticSiteMapProvider.cs
- MarginCollapsingState.cs
- EntryWrittenEventArgs.cs
- BodyWriter.cs
- StringAttributeCollection.cs
- RadioButtonRenderer.cs
- HtmlInputButton.cs
- TypeReference.cs
- CancellationTokenSource.cs
- PassportAuthenticationModule.cs
- SecurityTokenValidationException.cs
- RIPEMD160Managed.cs
- OdbcTransaction.cs
- DomainUpDown.cs
- WmlCalendarAdapter.cs
- ExternalException.cs
- SubqueryTrackingVisitor.cs
- VectorKeyFrameCollection.cs
- MultiTouchSystemGestureLogic.cs
- ExtractorMetadata.cs
- HttpVersion.cs
- RootNamespaceAttribute.cs
- mediaclock.cs
- RawStylusInputReport.cs
- FormViewModeEventArgs.cs
- ParameterReplacerVisitor.cs
- OutputWindow.cs
- ContentControl.cs
- TypePropertyEditor.cs
- MetabaseServerConfig.cs
- ConfigurationElementCollection.cs
- SrgsRule.cs
- SessionStateSection.cs
- EntityDataSourceMemberPath.cs
- SqlClientMetaDataCollectionNames.cs
- ReadWriteSpinLock.cs
- BlurEffect.cs
- DecoderFallback.cs
- GuidTagList.cs
- UpDownBase.cs
- TreeNode.cs
- ReaderWriterLockWrapper.cs
- AspProxy.cs
- DetailsViewInsertEventArgs.cs
- XmlAutoDetectWriter.cs
- OdbcInfoMessageEvent.cs
- SoapObjectWriter.cs
- FontDifferentiator.cs
- HttpProcessUtility.cs
- CompositeCollection.cs
- WebBrowsableAttribute.cs
- DispatcherOperation.cs
- SimpleLine.cs
- EntityDesignerDataSourceView.cs
- HttpResponseHeader.cs
- DataGridViewCell.cs
- Grid.cs
- HttpHeaderCollection.cs
- EllipseGeometry.cs
- Filter.cs
- SingleObjectCollection.cs
- ParallelQuery.cs
- EdmScalarPropertyAttribute.cs
- WindowsFormsEditorServiceHelper.cs
- AlignmentXValidation.cs
- ButtonBaseAdapter.cs
- ConnectionManagementElementCollection.cs
- PerfService.cs
- AttributeXamlType.cs
- XhtmlBasicLiteralTextAdapter.cs
- ScrollEventArgs.cs
- ProcessThread.cs
- SmiRequestExecutor.cs
- BuildResultCache.cs
- WmlPanelAdapter.cs
- SqlNamer.cs
- ListBindingConverter.cs