Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWebControls / System / Data / WebControls / ResourceDescriptionAttribute.cs / 1305376 / ResourceDescriptionAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //----------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Reflection; namespace System.Web.UI.WebControls { [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 = System.Web.UI.WebControlsRes.GetString(_descriptionResourceName); } 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
- HttpResponseInternalBase.cs
- ConstructorBuilder.cs
- InvalidDataException.cs
- WindowsSlider.cs
- XsltQilFactory.cs
- ChildTable.cs
- XhtmlBasicSelectionListAdapter.cs
- XpsPackagingException.cs
- XmlSchemaComplexContentRestriction.cs
- AuthenticationConfig.cs
- PreservationFileWriter.cs
- LoadItemsEventArgs.cs
- StylusButtonEventArgs.cs
- MobileTemplatedControlDesigner.cs
- DeviceFilterEditorDialog.cs
- CustomAttributeBuilder.cs
- HandlerMappingMemo.cs
- OSFeature.cs
- DrawingAttributesDefaultValueFactory.cs
- CommandBinding.cs
- BitVector32.cs
- RSAPKCS1SignatureDeformatter.cs
- CommonXSendMessage.cs
- User.cs
- PropertyPath.cs
- AbsoluteQuery.cs
- ComponentResourceKeyConverter.cs
- ServicePointManager.cs
- CustomTypeDescriptor.cs
- Profiler.cs
- ControlType.cs
- ScriptManager.cs
- AccessKeyManager.cs
- SByteConverter.cs
- BigInt.cs
- SpeechRecognitionEngine.cs
- OleDbRowUpdatingEvent.cs
- ListParagraph.cs
- MetadataException.cs
- ComplexTypeEmitter.cs
- DrawToolTipEventArgs.cs
- WeakRefEnumerator.cs
- VirtualPathProvider.cs
- DataSourceHelper.cs
- TreeNodeStyle.cs
- XmlSchemaParticle.cs
- Pair.cs
- UTF7Encoding.cs
- WebPartMenuStyle.cs
- EdmRelationshipRoleAttribute.cs
- TabControlCancelEvent.cs
- MachineKeyConverter.cs
- ObjectNotFoundException.cs
- columnmapfactory.cs
- Model3DGroup.cs
- LambdaCompiler.cs
- NonSerializedAttribute.cs
- DetailsViewRow.cs
- SqlReorderer.cs
- BigInt.cs
- BulletChrome.cs
- QueryCreatedEventArgs.cs
- StorageMappingFragment.cs
- MouseActionConverter.cs
- ComplexObject.cs
- CodePageUtils.cs
- Crypto.cs
- streamingZipPartStream.cs
- ServiceNotStartedException.cs
- Operator.cs
- StrokeCollection2.cs
- Mutex.cs
- EventLogger.cs
- DataColumn.cs
- OdbcConnectionHandle.cs
- JsonFormatWriterGenerator.cs
- ClrProviderManifest.cs
- XmlSchemaObjectCollection.cs
- COM2ComponentEditor.cs
- DeploymentSectionCache.cs
- TypeDependencyAttribute.cs
- ProcessThreadDesigner.cs
- ExternalCalls.cs
- ZipArchive.cs
- HostingEnvironmentException.cs
- Pkcs9Attribute.cs
- XmlObjectSerializerWriteContextComplex.cs
- ColorMap.cs
- OleDbDataAdapter.cs
- WebControlsSection.cs
- BuilderPropertyEntry.cs
- ConstNode.cs
- TextBounds.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- SimpleTextLine.cs
- FlowLayoutSettings.cs
- XmlUnspecifiedAttribute.cs
- DataGridViewCell.cs
- ForEachAction.cs
- OleDbWrapper.cs