Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / xsp / System / Web / Extensions / ui / ResourceDescriptionAttribute.cs / 1 / ResourceDescriptionAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Reflection; using System.Web.Resources; [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Event, Inherited = true, AllowMultiple = false)] internal sealed class ResourceDescriptionAttribute : DescriptionAttribute { private bool _resourceLoaded; private readonly string _descriptionResourceName; public ResourceDescriptionAttribute(string descriptionResourceName) { _descriptionResourceName = descriptionResourceName; } public override string Description { get { if (!_resourceLoaded) { _resourceLoaded = true; DescriptionValue = AtlasWeb.ResourceManager.GetString(_descriptionResourceName, AtlasWeb.Culture); } return base.Description; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Reflection; using System.Web.Resources; [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Event, Inherited = true, AllowMultiple = false)] internal sealed class ResourceDescriptionAttribute : DescriptionAttribute { private bool _resourceLoaded; private readonly string _descriptionResourceName; public ResourceDescriptionAttribute(string descriptionResourceName) { _descriptionResourceName = descriptionResourceName; } public override string Description { get { if (!_resourceLoaded) { _resourceLoaded = true; DescriptionValue = AtlasWeb.ResourceManager.GetString(_descriptionResourceName, AtlasWeb.Culture); } return base.Description; } } } } // 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
- DataGridViewCheckBoxColumn.cs
- XmlSchemaSubstitutionGroup.cs
- elementinformation.cs
- Repeater.cs
- RowUpdatingEventArgs.cs
- ProgressBarAutomationPeer.cs
- PageVisual.cs
- ClientBuildManager.cs
- BitmapMetadata.cs
- ServiceModelConfigurationSectionCollection.cs
- SqlError.cs
- WindowsIPAddress.cs
- SqlXmlStorage.cs
- FixedSOMGroup.cs
- SingleObjectCollection.cs
- Command.cs
- SafeEventLogReadHandle.cs
- AutoResetEvent.cs
- StyleXamlTreeBuilder.cs
- ListenerConnectionDemuxer.cs
- _AuthenticationState.cs
- ActivityDelegate.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- RoleManagerModule.cs
- NetNamedPipeSecurityMode.cs
- Token.cs
- SystemResources.cs
- Type.cs
- PerformanceCounterPermissionAttribute.cs
- PhysicalOps.cs
- PinnedBufferMemoryStream.cs
- DisableDpiAwarenessAttribute.cs
- CodeDelegateCreateExpression.cs
- basecomparevalidator.cs
- ShaderRenderModeValidation.cs
- TemplateParser.cs
- TextTabProperties.cs
- AttachmentCollection.cs
- InitializerFacet.cs
- COM2IProvidePropertyBuilderHandler.cs
- IssuedTokenClientBehaviorsElement.cs
- IdnMapping.cs
- mongolianshape.cs
- MatrixUtil.cs
- DisposableCollectionWrapper.cs
- IODescriptionAttribute.cs
- DataGridColumnCollectionEditor.cs
- StrokeSerializer.cs
- SystemWebCachingSectionGroup.cs
- GetPageCompletedEventArgs.cs
- Win32Interop.cs
- XmlDataSourceNodeDescriptor.cs
- TextRangeEditTables.cs
- ForeignConstraint.cs
- _SSPIWrapper.cs
- ConfigXmlWhitespace.cs
- SubMenuStyle.cs
- DescendantBaseQuery.cs
- XmlSubtreeReader.cs
- InheritanceContextHelper.cs
- DriveInfo.cs
- ProfessionalColorTable.cs
- CultureInfoConverter.cs
- ReadOnlyDictionary.cs
- DocumentPaginator.cs
- ISO2022Encoding.cs
- AssemblyBuilder.cs
- ExpressionSelection.cs
- _TLSstream.cs
- ResourceDefaultValueAttribute.cs
- XmlUnspecifiedAttribute.cs
- WindowsProgressbar.cs
- Command.cs
- RepeatInfo.cs
- IOThreadScheduler.cs
- SwitchElementsCollection.cs
- ControllableStoryboardAction.cs
- WmlObjectListAdapter.cs
- TimeZone.cs
- ListView.cs
- StringSorter.cs
- X509CertificateValidationMode.cs
- Region.cs
- Range.cs
- ObjectComplexPropertyMapping.cs
- SerializationInfoEnumerator.cs
- Base64Decoder.cs
- Frame.cs
- InstallerTypeAttribute.cs
- DropSourceBehavior.cs
- FileDetails.cs
- SelectionWordBreaker.cs
- OleDbSchemaGuid.cs
- ServiceOperationInvoker.cs
- StreamHelper.cs
- ServiceHostingEnvironment.cs
- SspiHelper.cs
- PaperSource.cs
- NonNullItemCollection.cs
- SoapIgnoreAttribute.cs