Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- SoapCommonClasses.cs
- XmlHierarchicalEnumerable.cs
- XmlSchemaSimpleContent.cs
- CompressionTransform.cs
- SqlProvider.cs
- ValidationEventArgs.cs
- WebException.cs
- ConfigXmlCDataSection.cs
- WinOEToolBoxItem.cs
- Privilege.cs
- ParseNumbers.cs
- Literal.cs
- XmlSiteMapProvider.cs
- SamlDelegatingWriter.cs
- HtmlInputImage.cs
- GridViewUpdatedEventArgs.cs
- TemplateBuilder.cs
- SchemaElementLookUpTable.cs
- DiscoveryInnerClientAdhocCD1.cs
- SessionPageStatePersister.cs
- BulletDecorator.cs
- TextSimpleMarkerProperties.cs
- TextReader.cs
- AttributeQuery.cs
- DataRecordInternal.cs
- CounterCreationDataCollection.cs
- ListControlStringCollectionEditor.cs
- TogglePattern.cs
- PermissionSetEnumerator.cs
- RemoteCryptoRsaServiceProvider.cs
- SocketManager.cs
- TextElementCollection.cs
- EntryIndex.cs
- BinarySerializer.cs
- DefinitionBase.cs
- ZipFileInfo.cs
- DiscardableAttribute.cs
- SafeFileMappingHandle.cs
- Rect3DValueSerializer.cs
- BitmapEffectOutputConnector.cs
- CngProperty.cs
- TrustManager.cs
- DigestComparer.cs
- TreeViewHitTestInfo.cs
- IndependentAnimationStorage.cs
- Latin1Encoding.cs
- XmlReflectionMember.cs
- XmlSchemaObjectTable.cs
- SimpleBitVector32.cs
- MsmqDiagnostics.cs
- ComplexPropertyEntry.cs
- XPathNavigatorReader.cs
- dataprotectionpermission.cs
- ErrorLog.cs
- UserControlBuildProvider.cs
- PanelStyle.cs
- HttpHeaderCollection.cs
- WebPartConnectionsCancelVerb.cs
- XPathDocumentNavigator.cs
- LoggedException.cs
- HtmlTable.cs
- PageThemeCodeDomTreeGenerator.cs
- DataGridViewComboBoxColumn.cs
- XmlFormatWriterGenerator.cs
- MulticastIPAddressInformationCollection.cs
- ProfileServiceManager.cs
- path.cs
- _LocalDataStore.cs
- Adorner.cs
- SelectorItemAutomationPeer.cs
- Funcletizer.cs
- TabControl.cs
- MetafileHeader.cs
- RenderingBiasValidation.cs
- AuthenticatingEventArgs.cs
- dataprotectionpermission.cs
- GridEntryCollection.cs
- CodeNamespaceImportCollection.cs
- XmlSchemaDocumentation.cs
- DelegateBodyWriter.cs
- XmlAttributeOverrides.cs
- Query.cs
- CriticalExceptions.cs
- DependencyObject.cs
- XmlNamespaceMappingCollection.cs
- MultiAsyncResult.cs
- XmlEncodedRawTextWriter.cs
- RepeaterItem.cs
- ToolboxItemAttribute.cs
- AdCreatedEventArgs.cs
- ProfileProvider.cs
- ListViewAutomationPeer.cs
- ReflectionUtil.cs
- CompilerScope.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- AutomationProperties.cs
- Queue.cs
- WSIdentityFaultException.cs
- ContentOnlyMessage.cs
- DesignerActionUI.cs