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
- ErrorHandler.cs
- EditorBrowsableAttribute.cs
- ObjectQuery_EntitySqlExtensions.cs
- SplineKeyFrames.cs
- ProviderUtil.cs
- DataSysAttribute.cs
- LifetimeServices.cs
- TrustSection.cs
- ClientTargetSection.cs
- ImmutableClientRuntime.cs
- Color.cs
- IgnoreSection.cs
- WmlImageAdapter.cs
- OleDbInfoMessageEvent.cs
- storagemappingitemcollection.viewdictionary.cs
- DoubleLink.cs
- StringUtil.cs
- RadioButtonFlatAdapter.cs
- DynamicRouteExpression.cs
- DesignerTextWriter.cs
- CoreChannel.cs
- FileLevelControlBuilderAttribute.cs
- ZipPackagePart.cs
- CodePrimitiveExpression.cs
- Identity.cs
- WebPartCancelEventArgs.cs
- ProfileSettingsCollection.cs
- ChannelAcceptor.cs
- XmlCompatibilityReader.cs
- Atom10FeedFormatter.cs
- AsymmetricKeyExchangeDeformatter.cs
- FunctionNode.cs
- DataKey.cs
- ButtonPopupAdapter.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- SqlConnection.cs
- Control.cs
- PropertyDescriptorComparer.cs
- AccessDataSource.cs
- Button.cs
- panel.cs
- WorkflowMarkupSerializationException.cs
- CalendarData.cs
- TraceSection.cs
- ImmutablePropertyDescriptorGridEntry.cs
- MediaEntryAttribute.cs
- SeekStoryboard.cs
- CodeGroup.cs
- SQLMoneyStorage.cs
- ScrollItemPattern.cs
- HttpAsyncResult.cs
- EdmComplexPropertyAttribute.cs
- Directory.cs
- MenuItemBindingCollection.cs
- Control.cs
- ChannelTraceRecord.cs
- QuaternionValueSerializer.cs
- WorkflowInstanceExtensionManager.cs
- WebPartAddingEventArgs.cs
- ResourceLoader.cs
- formatstringdialog.cs
- FragmentNavigationEventArgs.cs
- Int32.cs
- BuildResult.cs
- ValueUtilsSmi.cs
- CustomTypeDescriptor.cs
- SafeNativeMethods.cs
- WpfPayload.cs
- TextBlock.cs
- DataGridCellClipboardEventArgs.cs
- DecoderBestFitFallback.cs
- HMACSHA384.cs
- ToolStripPanel.cs
- SweepDirectionValidation.cs
- TypeGeneratedEventArgs.cs
- HtmlInputReset.cs
- TextServicesLoader.cs
- StreamSecurityUpgradeProvider.cs
- ColumnMapTranslator.cs
- VisualProxy.cs
- RemoveStoryboard.cs
- TextTreeDeleteContentUndoUnit.cs
- ContainerControl.cs
- IncrementalReadDecoders.cs
- TemplateBindingExpressionConverter.cs
- safemediahandle.cs
- CryptoConfig.cs
- PeerHelpers.cs
- GregorianCalendar.cs
- SizeLimitedCache.cs
- GifBitmapDecoder.cs
- IdentityValidationException.cs
- DocumentPropertiesDialog.cs
- RegexMatch.cs
- OrderedDictionaryStateHelper.cs
- ObjectParameter.cs
- DllNotFoundException.cs
- XamlPathDataSerializer.cs
- EncoderReplacementFallback.cs
- coordinatorscratchpad.cs