Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- SchemaExporter.cs
- SafeFileMappingHandle.cs
- CompiledRegexRunner.cs
- MappingMetadataHelper.cs
- WhitespaceRuleLookup.cs
- DataKeyPropertyAttribute.cs
- RenderDataDrawingContext.cs
- ExeContext.cs
- ListViewUpdatedEventArgs.cs
- TemplateKeyConverter.cs
- IsolatedStorageFileStream.cs
- SqlDataSourceSelectingEventArgs.cs
- DependencyObjectPropertyDescriptor.cs
- NameObjectCollectionBase.cs
- SizeF.cs
- QueuedDeliveryRequirementsMode.cs
- Mappings.cs
- CompoundFileReference.cs
- MbpInfo.cs
- ConfigurationValue.cs
- TiffBitmapDecoder.cs
- Win32Native.cs
- UpdateTracker.cs
- Point3DKeyFrameCollection.cs
- EventNotify.cs
- ImmutablePropertyDescriptorGridEntry.cs
- ColumnResult.cs
- ReverseInheritProperty.cs
- unsafeIndexingFilterStream.cs
- ClientBuildManager.cs
- CurrencyWrapper.cs
- Int32RectConverter.cs
- EnumerableRowCollection.cs
- TextSpan.cs
- ToolStripPanel.cs
- StyleBamlTreeBuilder.cs
- MsmqBindingMonitor.cs
- ColorKeyFrameCollection.cs
- TreeBuilderXamlTranslator.cs
- BuildProviderCollection.cs
- OracleEncoding.cs
- TrustManagerPromptUI.cs
- ExpressionBuilder.cs
- InternalBufferManager.cs
- ListViewHitTestInfo.cs
- UICuesEvent.cs
- EncryptedType.cs
- AssemblyNameProxy.cs
- DesignerSerializerAttribute.cs
- Ray3DHitTestResult.cs
- HtmlTableRowCollection.cs
- BamlTreeUpdater.cs
- ClientFormsAuthenticationCredentials.cs
- TypeReference.cs
- OracleInfoMessageEventArgs.cs
- ExpressionParser.cs
- DataColumnChangeEvent.cs
- FolderNameEditor.cs
- SerializationSectionGroup.cs
- BindingExpressionBase.cs
- DaylightTime.cs
- ValidatedControlConverter.cs
- QuadTree.cs
- WebPartMovingEventArgs.cs
- HiddenFieldPageStatePersister.cs
- XamlParser.cs
- ChtmlTextWriter.cs
- SerializerDescriptor.cs
- AnimationClockResource.cs
- ExpressionParser.cs
- HttpsTransportBindingElement.cs
- StorageScalarPropertyMapping.cs
- DiscriminatorMap.cs
- ResourcesChangeInfo.cs
- HtmlInputText.cs
- References.cs
- Highlights.cs
- EncodingInfo.cs
- UnsafeNativeMethods.cs
- MenuItem.cs
- SecurityCriticalDataForSet.cs
- RawStylusInputReport.cs
- HttpsHostedTransportConfiguration.cs
- SamlEvidence.cs
- SByteStorage.cs
- MethodAccessException.cs
- EventRecordWrittenEventArgs.cs
- MeshGeometry3D.cs
- WebPartCatalogAddVerb.cs
- LinqDataSourceContextEventArgs.cs
- EntityExpressionVisitor.cs
- SettingsPropertyWrongTypeException.cs
- SortDescriptionCollection.cs
- ReadOnlyPropertyMetadata.cs
- CompilerResults.cs
- SystemIPAddressInformation.cs
- BooleanProjectedSlot.cs
- SecurityPolicySection.cs
- WindowsFormsDesignerOptionService.cs
- GridViewHeaderRowPresenter.cs