Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- BuildProvider.cs
- Cursor.cs
- MyContact.cs
- InternalTransaction.cs
- Model3DCollection.cs
- OleDbParameterCollection.cs
- CompressedStack.cs
- SubMenuStyle.cs
- ListView.cs
- TableLayoutStyleCollection.cs
- RbTree.cs
- WS2007HttpBindingElement.cs
- TextRangeEditLists.cs
- TrustLevel.cs
- MaskedTextBoxDesignerActionList.cs
- NoClickablePointException.cs
- RelationshipFixer.cs
- NotFiniteNumberException.cs
- DrawingContextWalker.cs
- MappingModelBuildProvider.cs
- OutputCacheModule.cs
- CacheHelper.cs
- HtmlTableCellCollection.cs
- SoapProtocolImporter.cs
- ToolboxItem.cs
- CachedBitmap.cs
- IsolatedStorageFile.cs
- CompilationRelaxations.cs
- TdsRecordBufferSetter.cs
- MsmqSecureHashAlgorithm.cs
- PageHandlerFactory.cs
- WebColorConverter.cs
- OrderToken.cs
- Interlocked.cs
- XmlCompatibilityReader.cs
- VerificationException.cs
- ICspAsymmetricAlgorithm.cs
- QueueProcessor.cs
- NonSerializedAttribute.cs
- WmlFormAdapter.cs
- MimeFormatter.cs
- XmlSchemaSimpleTypeList.cs
- Model3DGroup.cs
- DBSqlParserColumn.cs
- RotateTransform3D.cs
- BindableAttribute.cs
- Evaluator.cs
- StateBag.cs
- Double.cs
- _ListenerResponseStream.cs
- DataBoundControlAdapter.cs
- HttpWebRequestElement.cs
- MarkupCompiler.cs
- XmlHierarchicalDataSourceView.cs
- SmiEventStream.cs
- PackUriHelper.cs
- RowsCopiedEventArgs.cs
- NetworkInterface.cs
- HttpCachePolicyElement.cs
- ThreadSafeList.cs
- ControlPropertyNameConverter.cs
- TreeNodeCollection.cs
- TreeIterators.cs
- ProjectionPlan.cs
- TemporaryBitmapFile.cs
- PerformanceCounterPermission.cs
- ToolStripPanelRenderEventArgs.cs
- PrintController.cs
- DataServiceRequest.cs
- StringToken.cs
- FileLoadException.cs
- DesignerSerializationOptionsAttribute.cs
- RepeaterItem.cs
- MetaModel.cs
- DescendantBaseQuery.cs
- TransactionInformation.cs
- BuildManagerHost.cs
- precedingquery.cs
- Soap.cs
- DataGridBoolColumn.cs
- XmlSerializerObjectSerializer.cs
- AtomContentProperty.cs
- StoreContentChangedEventArgs.cs
- UnsafeNativeMethods.cs
- PersistenceIOParticipant.cs
- SynchronizedReadOnlyCollection.cs
- ProviderMetadataCachedInformation.cs
- MarkupExtensionParser.cs
- CapabilitiesUse.cs
- ThrowHelper.cs
- EventMap.cs
- ResourceDescriptionAttribute.cs
- OracleParameterCollection.cs
- ConditionalWeakTable.cs
- PerformanceCountersElement.cs
- Authorization.cs
- ConfigurationLocation.cs
- XmlComment.cs
- URL.cs
- RuleElement.cs