Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataWebControls / System / Data / WebControls / ResourceDescriptionAttribute.cs / 1 / 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. //------------------------------------------------------------------------------ //// 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
- RtfFormatStack.cs
- ProxyAttribute.cs
- SHA512Managed.cs
- ProviderBase.cs
- XamlDesignerSerializationManager.cs
- _OverlappedAsyncResult.cs
- ISO2022Encoding.cs
- HistoryEventArgs.cs
- IChannel.cs
- RsaSecurityTokenAuthenticator.cs
- VisualStyleTypesAndProperties.cs
- UnsafeNativeMethods.cs
- JsonReader.cs
- TableParagraph.cs
- LinkGrep.cs
- WebBrowserContainer.cs
- PolicyStatement.cs
- RijndaelManagedTransform.cs
- MetadataFile.cs
- XsltFunctions.cs
- RowVisual.cs
- RSAOAEPKeyExchangeDeformatter.cs
- Int64.cs
- RegexCompilationInfo.cs
- SqlConnectionFactory.cs
- RoleManagerModule.cs
- RewritingSimplifier.cs
- ConditionCollection.cs
- DisposableCollectionWrapper.cs
- EncryptedData.cs
- MultiTrigger.cs
- InputLangChangeRequestEvent.cs
- VirtualizingStackPanel.cs
- SettingsBase.cs
- MemberAccessException.cs
- Section.cs
- DataFieldConverter.cs
- hebrewshape.cs
- SafeNativeMethods.cs
- SchemaSetCompiler.cs
- TranslateTransform.cs
- CroppedBitmap.cs
- XomlCompilerParameters.cs
- PointCollectionValueSerializer.cs
- InfoCardArgumentException.cs
- StackOverflowException.cs
- MdiWindowListStrip.cs
- userdatakeys.cs
- SourceLocation.cs
- HttpVersion.cs
- RegisteredHiddenField.cs
- Expression.cs
- SqlFacetAttribute.cs
- WhitespaceRuleReader.cs
- ContentPlaceHolder.cs
- KeysConverter.cs
- UTF7Encoding.cs
- OleStrCAMarshaler.cs
- XpsS0ValidatingLoader.cs
- BindingContext.cs
- BamlResourceContent.cs
- SynchronizedChannelCollection.cs
- CompositeActivityTypeDescriptor.cs
- MultiSelector.cs
- GifBitmapDecoder.cs
- CharStorage.cs
- WebControlAdapter.cs
- EdmScalarPropertyAttribute.cs
- ToolStripContainer.cs
- ArgIterator.cs
- VersionConverter.cs
- X509Certificate2Collection.cs
- DataListItemEventArgs.cs
- ClientScriptManagerWrapper.cs
- CalendarAutoFormatDialog.cs
- SerializerProvider.cs
- TextServicesProperty.cs
- PrePostDescendentsWalker.cs
- AuthenticationManager.cs
- WsdlBuildProvider.cs
- WindowsTokenRoleProvider.cs
- IListConverters.cs
- Span.cs
- DynamicResourceExtension.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- WebMethodAttribute.cs
- Msmq4PoisonHandler.cs
- remotingproxy.cs
- DateTimeStorage.cs
- EditorZoneBase.cs
- ExpressionBindingCollection.cs
- ConnectionStringsExpressionBuilder.cs
- TwoPhaseCommit.cs
- EFAssociationProvider.cs
- NullToBooleanConverter.cs
- PreProcessor.cs
- ApplicationSecurityInfo.cs
- ResourceExpressionBuilder.cs
- SHA512Managed.cs
- NotifyIcon.cs