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
- Calendar.cs
- ParserStreamGeometryContext.cs
- ClaimTypeElementCollection.cs
- RuntimeIdentifierPropertyAttribute.cs
- DesignerActionMethodItem.cs
- RuleSettingsCollection.cs
- CompilationSection.cs
- LocalBuilder.cs
- ParameterCollection.cs
- HtmlShimManager.cs
- Point3DAnimationBase.cs
- MouseButtonEventArgs.cs
- ToolStripArrowRenderEventArgs.cs
- DocComment.cs
- ImageSource.cs
- ContextProperty.cs
- BackgroundWorker.cs
- cookie.cs
- FrameworkRichTextComposition.cs
- X509Chain.cs
- SafeNativeMethods.cs
- ProjectionCamera.cs
- PageTextBox.cs
- TabItemAutomationPeer.cs
- WebPartEditorCancelVerb.cs
- ConstructorNeedsTagAttribute.cs
- ApplicationServiceManager.cs
- XmlSchemaFacet.cs
- SortedList.cs
- parserscommon.cs
- InnerItemCollectionView.cs
- BitmapData.cs
- HttpCookieCollection.cs
- StylusCollection.cs
- SafeRightsManagementSessionHandle.cs
- HighContrastHelper.cs
- Process.cs
- ExpressionLink.cs
- SchemaTypeEmitter.cs
- TemplateControl.cs
- Fx.cs
- VisualStyleInformation.cs
- Pipe.cs
- TextEffectCollection.cs
- GeneratedCodeAttribute.cs
- RowTypePropertyElement.cs
- TraceContextEventArgs.cs
- TargetPerspective.cs
- SpeechAudioFormatInfo.cs
- shaperfactoryquerycacheentry.cs
- AsymmetricSignatureDeformatter.cs
- _ShellExpression.cs
- _ConnectStream.cs
- FontUnit.cs
- ExpressionVisitor.cs
- BamlLocalizationDictionary.cs
- AssemblyAttributes.cs
- Rect.cs
- BitmapScalingModeValidation.cs
- RichTextBoxContextMenu.cs
- ContainerVisual.cs
- AnonymousIdentificationModule.cs
- WindowsSecurityTokenAuthenticator.cs
- OleDbException.cs
- PlainXmlDeserializer.cs
- Propagator.JoinPropagator.cs
- Brush.cs
- TreeView.cs
- Material.cs
- errorpatternmatcher.cs
- MenuItem.cs
- EmptyStringExpandableObjectConverter.cs
- ProcessInfo.cs
- XmlElementAttributes.cs
- CodeTypeReference.cs
- EdmConstants.cs
- PerfCounters.cs
- HandleCollector.cs
- _AutoWebProxyScriptEngine.cs
- AddInAttribute.cs
- DecimalAnimationUsingKeyFrames.cs
- PersonalizationProviderHelper.cs
- HebrewNumber.cs
- AssemblyBuilder.cs
- util.cs
- ConfigurationCollectionAttribute.cs
- OpenFileDialog.cs
- DataListItem.cs
- UntypedNullExpression.cs
- FilterException.cs
- SubMenuStyle.cs
- __ComObject.cs
- DesignOnlyAttribute.cs
- TreeViewHitTestInfo.cs
- ExpressionWriter.cs
- GC.cs
- MonthCalendar.cs
- DataControlPagerLinkButton.cs
- Expression.cs
- PageSettings.cs