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
- GZipDecoder.cs
- SystemWebCachingSectionGroup.cs
- BamlRecordReader.cs
- BindingMemberInfo.cs
- VerificationAttribute.cs
- TraceData.cs
- TitleStyle.cs
- Stylesheet.cs
- StorageTypeMapping.cs
- ClockGroup.cs
- SortKey.cs
- ColorComboBox.cs
- InteropTrackingRecord.cs
- SafeLocalAllocation.cs
- LogLogRecord.cs
- ClientSideProviderDescription.cs
- BuildProvider.cs
- HttpModuleCollection.cs
- ServiceEndpointCollection.cs
- SHA512Managed.cs
- VersionPair.cs
- GatewayIPAddressInformationCollection.cs
- BindingExpressionUncommonField.cs
- RoutingService.cs
- PlanCompiler.cs
- TypedServiceOperationListItem.cs
- ResXResourceReader.cs
- EventLogEntryCollection.cs
- SuppressMessageAttribute.cs
- ImmutableAssemblyCacheEntry.cs
- IWorkflowDebuggerService.cs
- XmlUTF8TextReader.cs
- AuthorizationSection.cs
- FullTextState.cs
- DBDataPermission.cs
- EntityContainerRelationshipSetEnd.cs
- ContainerFilterService.cs
- OleDbFactory.cs
- CellTreeNode.cs
- ItemCheckEvent.cs
- InputScope.cs
- XPathArrayIterator.cs
- TimeSpanHelper.cs
- XmlStringTable.cs
- ControlPropertyNameConverter.cs
- AmbientProperties.cs
- SecurityStateEncoder.cs
- EntityCollection.cs
- AllMembershipCondition.cs
- _AutoWebProxyScriptHelper.cs
- BaseDataList.cs
- NumericUpDownAccelerationCollection.cs
- XmlIlGenerator.cs
- Brush.cs
- AvtEvent.cs
- InfoCardArgumentException.cs
- SelectionItemPattern.cs
- Repeater.cs
- WorkflowApplicationUnhandledExceptionEventArgs.cs
- DesignerDataSourceView.cs
- DesignOnlyAttribute.cs
- UIPropertyMetadata.cs
- InlineCollection.cs
- XsdCachingReader.cs
- XmlSchemaExternal.cs
- OdbcConnectionFactory.cs
- XmlNotation.cs
- FontFamily.cs
- ReadOnlyDictionary.cs
- ReflectEventDescriptor.cs
- PlanCompilerUtil.cs
- CollectionViewGroupRoot.cs
- JulianCalendar.cs
- DispatcherOperation.cs
- IMembershipProvider.cs
- BuildManager.cs
- Buffer.cs
- Knowncolors.cs
- Events.cs
- FuncCompletionCallbackWrapper.cs
- InplaceBitmapMetadataWriter.cs
- OdbcConnectionString.cs
- XmlNodeChangedEventManager.cs
- ExpressionBuilderContext.cs
- SecurityDocument.cs
- BamlRecordReader.cs
- FixedSOMTableCell.cs
- HttpRequestTraceRecord.cs
- IPipelineRuntime.cs
- RedistVersionInfo.cs
- Drawing.cs
- Math.cs
- ValueTypeFixupInfo.cs
- ClientRuntimeConfig.cs
- TextEffectCollection.cs
- XmlHierarchicalDataSourceView.cs
- CreationContext.cs
- PerformanceCounterPermission.cs
- LogWriteRestartAreaState.cs
- MonthChangedEventArgs.cs