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
- TableLayoutStyle.cs
- InputScope.cs
- VirtualPathProvider.cs
- MimeObjectFactory.cs
- BufferBuilder.cs
- FormView.cs
- SizeIndependentAnimationStorage.cs
- DomainConstraint.cs
- IListConverters.cs
- ActivityMarkupSerializer.cs
- MsmqOutputSessionChannel.cs
- AutomationPeer.cs
- WebColorConverter.cs
- ContractReference.cs
- GenerateHelper.cs
- WebPartEditorCancelVerb.cs
- UmAlQuraCalendar.cs
- FixUpCollection.cs
- HttpModuleCollection.cs
- LoginUtil.cs
- DrawingCollection.cs
- DocumentAutomationPeer.cs
- SimpleApplicationHost.cs
- ThemeDirectoryCompiler.cs
- contentDescriptor.cs
- MemberAssignmentAnalysis.cs
- SoapAttributes.cs
- SqlMethods.cs
- MembershipValidatePasswordEventArgs.cs
- Int16.cs
- OrderByBuilder.cs
- EnumerableWrapperWeakToStrong.cs
- EntityCollection.cs
- ProgressBarHighlightConverter.cs
- TrackingParameters.cs
- IssuedTokenParametersEndpointAddressElement.cs
- LexicalChunk.cs
- NamedElement.cs
- ColorInterpolationModeValidation.cs
- JoinCqlBlock.cs
- DataGridTextBox.cs
- BuildManager.cs
- TableParagraph.cs
- MemberNameValidator.cs
- PeerNameRegistration.cs
- peersecuritysettings.cs
- ThemeableAttribute.cs
- MediaContext.cs
- SqlConnectionFactory.cs
- MediaElementAutomationPeer.cs
- ApplicationManager.cs
- ClrProviderManifest.cs
- ConstraintCollection.cs
- AnnotationMap.cs
- SolidColorBrush.cs
- AuthenticatingEventArgs.cs
- DetailsViewUpdatedEventArgs.cs
- ModelTreeManager.cs
- DelegateBodyWriter.cs
- RichTextBox.cs
- BooleanToVisibilityConverter.cs
- SyndicationSerializer.cs
- PlainXmlDeserializer.cs
- LoginView.cs
- CodeParameterDeclarationExpression.cs
- WebCategoryAttribute.cs
- Stack.cs
- OdbcConnectionHandle.cs
- Monitor.cs
- Base64Stream.cs
- TemplatedWizardStep.cs
- unsafenativemethodsother.cs
- SqlUserDefinedAggregateAttribute.cs
- DotExpr.cs
- MessageFilterTable.cs
- PiiTraceSource.cs
- FileAuthorizationModule.cs
- SortQueryOperator.cs
- PtsContext.cs
- AuthenticationService.cs
- GridItemProviderWrapper.cs
- Int32AnimationUsingKeyFrames.cs
- RadioButtonStandardAdapter.cs
- TableLayoutCellPaintEventArgs.cs
- OletxTransactionFormatter.cs
- LogManagementAsyncResult.cs
- TextElementAutomationPeer.cs
- CodeDOMUtility.cs
- Maps.cs
- SQLChars.cs
- shaperfactory.cs
- DragEvent.cs
- ReadOnlyState.cs
- CodeExporter.cs
- ObfuscateAssemblyAttribute.cs
- ExpressionBuilderCollection.cs
- Solver.cs
- Activity.cs
- NonVisualControlAttribute.cs
- WCFModelStrings.Designer.cs