Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataWebControlsDesign / System / Data / WebControls / Design / Util / ResourceDescriptionAttribute.cs / 3 / ResourceDescriptionAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //----------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Reflection; namespace System.Web.UI.Design.WebControls.Util { [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.Design.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.Design.WebControls.Util { [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.Design.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
- DetailsViewInsertEventArgs.cs
- CookieProtection.cs
- ParameterBuilder.cs
- DeclarativeCatalogPart.cs
- SendingRequestEventArgs.cs
- StylusPointProperty.cs
- ConstraintStruct.cs
- ImageClickEventArgs.cs
- SoapTypeAttribute.cs
- WebBrowserSiteBase.cs
- RenameRuleObjectDialog.Designer.cs
- DataExpression.cs
- StaticResourceExtension.cs
- DefaultAuthorizationContext.cs
- DesignerActionItemCollection.cs
- FixedDSBuilder.cs
- ALinqExpressionVisitor.cs
- MaskedTextBoxDesignerActionList.cs
- ParenthesizePropertyNameAttribute.cs
- SamlAssertionKeyIdentifierClause.cs
- DoubleStorage.cs
- Quad.cs
- Collection.cs
- Stack.cs
- CompilerState.cs
- CodeTypeReferenceSerializer.cs
- SystemIcons.cs
- BasicCellRelation.cs
- FixedSOMPageConstructor.cs
- DataTableMappingCollection.cs
- FixedHyperLink.cs
- HotSpot.cs
- HttpDebugHandler.cs
- TextProviderWrapper.cs
- MessageEncoder.cs
- SafeRightsManagementSessionHandle.cs
- FieldAccessException.cs
- ObjectDataSourceDisposingEventArgs.cs
- ObjectQuery.cs
- StrongNameUtility.cs
- DateTimePicker.cs
- Rfc2898DeriveBytes.cs
- UserPreferenceChangingEventArgs.cs
- DataGridViewTextBoxCell.cs
- ConfigurationSectionCollection.cs
- ProviderIncompatibleException.cs
- StringInfo.cs
- ListSortDescription.cs
- ErrorView.xaml.cs
- ScriptComponentDescriptor.cs
- PassportAuthentication.cs
- ConnectionConsumerAttribute.cs
- RotateTransform3D.cs
- System.Data_BID.cs
- DotExpr.cs
- LinearQuaternionKeyFrame.cs
- ObjectItemNoOpAssemblyLoader.cs
- UrlUtility.cs
- FunctionParameter.cs
- IdentifierCreationService.cs
- IncrementalCompileAnalyzer.cs
- BufferBuilder.cs
- Stack.cs
- StorageEntityTypeMapping.cs
- SeekStoryboard.cs
- ValueCollectionParameterReader.cs
- DynamicDiscoveryDocument.cs
- WsatTransactionInfo.cs
- OverloadGroupAttribute.cs
- HandlerFactoryCache.cs
- FontDriver.cs
- ChangeDirector.cs
- VisualProxy.cs
- XmlSerializer.cs
- ImageFormatConverter.cs
- IntSecurity.cs
- ListViewSelectEventArgs.cs
- SiteMapDataSourceView.cs
- WebCategoryAttribute.cs
- NamedPipeTransportBindingElement.cs
- SystemIPv6InterfaceProperties.cs
- RC2.cs
- HostVisual.cs
- ContentElementAutomationPeer.cs
- COM2ColorConverter.cs
- TextBoxRenderer.cs
- ColumnCollection.cs
- XmlNamespaceDeclarationsAttribute.cs
- WinEventHandler.cs
- BevelBitmapEffect.cs
- TcpClientChannel.cs
- SqlConnectionHelper.cs
- Transform3DGroup.cs
- SqlFunctions.cs
- TemplatingOptionsDialog.cs
- EditorZone.cs
- NodeCounter.cs
- StatusBarItemAutomationPeer.cs
- SystemKeyConverter.cs
- RelOps.cs