Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / DynamicData / UI / ResourceDescriptionAttribute.cs / 1305376 / 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 = DynamicDataResources.ResourceManager.GetString(_descriptionResourceName, DynamicDataResources.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 = DynamicDataResources.ResourceManager.GetString(_descriptionResourceName, DynamicDataResources.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
- OneToOneMappingSerializer.cs
- HtmlTernaryTree.cs
- ScrollEventArgs.cs
- SplashScreen.cs
- WeakReferenceList.cs
- SqlRemoveConstantOrderBy.cs
- Literal.cs
- DefaultClaimSet.cs
- DiscreteKeyFrames.cs
- ListControlConvertEventArgs.cs
- WindowsGraphicsCacheManager.cs
- sqlmetadatafactory.cs
- HwndSourceKeyboardInputSite.cs
- X509UI.cs
- OdbcEnvironment.cs
- MaskedTextProvider.cs
- DrawListViewSubItemEventArgs.cs
- _ListenerResponseStream.cs
- ToolStripContentPanelRenderEventArgs.cs
- Point3DAnimationBase.cs
- RegexGroupCollection.cs
- WinEventTracker.cs
- DataQuery.cs
- TcpConnectionPool.cs
- QueryAsyncResult.cs
- PassportAuthenticationEventArgs.cs
- CacheAxisQuery.cs
- BaseParagraph.cs
- Operator.cs
- TextStore.cs
- SrgsText.cs
- WebConfigurationFileMap.cs
- SkewTransform.cs
- PersonalizablePropertyEntry.cs
- ListViewInsertedEventArgs.cs
- GetPageCompletedEventArgs.cs
- DomainConstraint.cs
- DesignerUtility.cs
- EntityCodeGenerator.cs
- SHA512Managed.cs
- Context.cs
- Bold.cs
- ObjectItemLoadingSessionData.cs
- SubMenuStyleCollection.cs
- SqlXmlStorage.cs
- ProbeDuplexCD1AsyncResult.cs
- InkCollectionBehavior.cs
- DependencyObject.cs
- SByte.cs
- SingleAnimation.cs
- TypeContext.cs
- Executor.cs
- RouteParser.cs
- Accessors.cs
- RegexWriter.cs
- CheckBox.cs
- Binding.cs
- VectorKeyFrameCollection.cs
- ControlCachePolicy.cs
- BindValidator.cs
- BitmapSource.cs
- TypeHelper.cs
- ServiceContractGenerator.cs
- ChameleonKey.cs
- DataGridViewTextBoxEditingControl.cs
- ValidatorUtils.cs
- BamlMapTable.cs
- ArcSegment.cs
- Pts.cs
- EnterpriseServicesHelper.cs
- DecoderReplacementFallback.cs
- ScriptManager.cs
- WindowsIPAddress.cs
- EditingCoordinator.cs
- XpsSerializationManagerAsync.cs
- DataServicePagingProviderWrapper.cs
- TextBoxView.cs
- BinaryFormatter.cs
- RealProxy.cs
- SchemaCompiler.cs
- QilInvokeLateBound.cs
- ProviderIncompatibleException.cs
- DataGridViewCellMouseEventArgs.cs
- DataPagerFieldItem.cs
- ReadOnlyDataSourceView.cs
- SectionRecord.cs
- ProviderConnectionPointCollection.cs
- ThreadExceptionEvent.cs
- WasHttpHandlersInstallComponent.cs
- ValueTypeFixupInfo.cs
- RadioButtonAutomationPeer.cs
- MdiWindowListItemConverter.cs
- counter.cs
- DesignerResources.cs
- UInt32Storage.cs
- LinkedList.cs
- EventPrivateKey.cs
- MimeParameterWriter.cs
- Win32PrintDialog.cs
- CryptographicAttribute.cs