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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- IListConverters.cs
- RuntimeEnvironment.cs
- SqlFactory.cs
- TileBrush.cs
- TextLineResult.cs
- RepeaterItemEventArgs.cs
- SerializationSectionGroup.cs
- PeerApplication.cs
- XmlSchemaObjectTable.cs
- ConditionValidator.cs
- DefaultHttpHandler.cs
- FixedSOMLineRanges.cs
- path.cs
- XmlNodeComparer.cs
- ListViewSortEventArgs.cs
- EmptyQuery.cs
- BindableTemplateBuilder.cs
- TransformerConfigurationWizardBase.cs
- CodeConditionStatement.cs
- InArgumentConverter.cs
- Semaphore.cs
- SizeKeyFrameCollection.cs
- DelegatingTypeDescriptionProvider.cs
- PriorityBindingExpression.cs
- PolygonHotSpot.cs
- EncodingDataItem.cs
- CreateParams.cs
- StylusCaptureWithinProperty.cs
- FactoryId.cs
- StringSource.cs
- ZipPackage.cs
- WorkflowHostingEndpoint.cs
- RbTree.cs
- ItemsControlAutomationPeer.cs
- ExpandedWrapper.cs
- BitmapFrame.cs
- CustomLineCap.cs
- DataSourceXmlTextReader.cs
- EdmPropertyAttribute.cs
- AspProxy.cs
- httpapplicationstate.cs
- PeerCollaboration.cs
- WindowsFormsEditorServiceHelper.cs
- FontStyleConverter.cs
- TableCell.cs
- SamlAudienceRestrictionCondition.cs
- PrinterSettings.cs
- Package.cs
- WindowsSecurityTokenAuthenticator.cs
- SessionParameter.cs
- WebPartCatalogCloseVerb.cs
- InternalDuplexBindingElement.cs
- TemplateControlParser.cs
- Expressions.cs
- ArrowControl.xaml.cs
- ElasticEase.cs
- BitmapVisualManager.cs
- ConfigXmlText.cs
- MimeWriter.cs
- SharedPersonalizationStateInfo.cs
- ImpersonationContext.cs
- XmlSchemaFacet.cs
- MethodBuilder.cs
- StorageEntityContainerMapping.cs
- AddInAdapter.cs
- CursorConverter.cs
- SafeNativeMethods.cs
- RadioButton.cs
- SubclassTypeValidator.cs
- ValidationResults.cs
- MarkedHighlightComponent.cs
- ContentPlaceHolder.cs
- WindowsFormsSectionHandler.cs
- EventLogPropertySelector.cs
- DataGridTextBox.cs
- RuntimeVariableList.cs
- AttributeUsageAttribute.cs
- ExpressionPrinter.cs
- InkSerializer.cs
- TypedTableHandler.cs
- HttpCacheParams.cs
- GetMemberBinder.cs
- safemediahandle.cs
- OdbcParameterCollection.cs
- BinaryReader.cs
- ADMembershipUser.cs
- DiagnosticEventProvider.cs
- ScriptingJsonSerializationSection.cs
- TraceContextEventArgs.cs
- GridPatternIdentifiers.cs
- PostBackOptions.cs
- HttpCookie.cs
- TypedReference.cs
- QuaternionIndependentAnimationStorage.cs
- MediaPlayer.cs
- MatrixTransform.cs
- ConfigurationSectionGroup.cs
- FontFamilyValueSerializer.cs
- WindowsScrollBar.cs
- ToolStripOverflow.cs