Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- OlePropertyStructs.cs
- FactoryGenerator.cs
- Buffer.cs
- DispatcherHookEventArgs.cs
- LineInfo.cs
- EpmSyndicationContentDeSerializer.cs
- BitSet.cs
- Transform.cs
- GcHandle.cs
- ResourceDescriptionAttribute.cs
- EdmMember.cs
- ConnectionStringsExpressionBuilder.cs
- SystemDiagnosticsSection.cs
- WindowsAuthenticationModule.cs
- StylusPointProperties.cs
- ListControl.cs
- ToolStripMenuItem.cs
- PermissionSetTriple.cs
- ModelTypeConverter.cs
- RectangleGeometry.cs
- ServerValidateEventArgs.cs
- ComplexObject.cs
- CqlParserHelpers.cs
- DocumentViewerHelper.cs
- UIElementPropertyUndoUnit.cs
- DoubleCollectionConverter.cs
- KeyInterop.cs
- Convert.cs
- TemplateModeChangedEventArgs.cs
- InternalDuplexChannelListener.cs
- ComplexPropertyEntry.cs
- PriorityQueue.cs
- TextParaLineResult.cs
- ReceiveActivityValidator.cs
- Base64WriteStateInfo.cs
- Token.cs
- ResolveMatchesMessageCD1.cs
- FrameworkEventSource.cs
- XmlAttributeAttribute.cs
- ListParaClient.cs
- EncoderNLS.cs
- TdsParserStaticMethods.cs
- InProcStateClientManager.cs
- DateTimeStorage.cs
- SortQuery.cs
- InplaceBitmapMetadataWriter.cs
- ArraySet.cs
- ValueTypeFieldReference.cs
- WrappedKeySecurityTokenParameters.cs
- MarkupCompilePass1.cs
- MSAANativeProvider.cs
- TdsRecordBufferSetter.cs
- WebColorConverter.cs
- DiffuseMaterial.cs
- PackageDigitalSignature.cs
- ConfigurationElementCollection.cs
- HandlerFactoryCache.cs
- HandlerBase.cs
- AssemblyResourceLoader.cs
- SessionIDManager.cs
- EventItfInfo.cs
- BlockUIContainer.cs
- LOSFormatter.cs
- InvokeWebServiceDesigner.cs
- BamlRecordReader.cs
- WorkflowRuntimeServiceElement.cs
- FactoryRecord.cs
- DataKey.cs
- ConnectionStringSettings.cs
- ColorBlend.cs
- XPathException.cs
- Border.cs
- BitmapVisualManager.cs
- TextRangeAdaptor.cs
- ActivityInterfaces.cs
- ImageBrush.cs
- RuntimeArgumentHandle.cs
- DocumentGridPage.cs
- XmlEnumAttribute.cs
- ProxyWebPartConnectionCollection.cs
- _HelperAsyncResults.cs
- AvtEvent.cs
- OperationContextScope.cs
- SBCSCodePageEncoding.cs
- AuthenticationSection.cs
- XmlSchemaElement.cs
- ProfessionalColors.cs
- WeakReferenceKey.cs
- SequenceFullException.cs
- WebPartZoneBase.cs
- CatalogZone.cs
- WebBrowserEvent.cs
- LineSegment.cs
- AvtEvent.cs
- CodeIdentifier.cs
- _LocalDataStore.cs
- InheritanceAttribute.cs
- AddingNewEventArgs.cs
- ExpandableObjectConverter.cs
- IntSecurity.cs