Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / 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 = AtlasWeb.ResourceManager.GetString(_descriptionResourceName, AtlasWeb.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
- ConstraintStruct.cs
- PenThreadPool.cs
- StrongNameMembershipCondition.cs
- SafePointer.cs
- DiagnosticTraceSource.cs
- SchemaManager.cs
- Array.cs
- TcpSocketManager.cs
- DbgCompiler.cs
- InputProcessorProfiles.cs
- TextShapeableCharacters.cs
- TabletDeviceInfo.cs
- ReadOnlyDataSource.cs
- ClientUrlResolverWrapper.cs
- WebBrowserProgressChangedEventHandler.cs
- XmlNavigatorFilter.cs
- BitStack.cs
- OpCodes.cs
- WeakRefEnumerator.cs
- ResolveRequestResponseAsyncResult.cs
- UnsafeNativeMethods.cs
- FixedSOMSemanticBox.cs
- PageCodeDomTreeGenerator.cs
- Nullable.cs
- ContextBase.cs
- SqlRowUpdatingEvent.cs
- EntityDesignerDataSourceView.cs
- InputProcessorProfiles.cs
- QilLiteral.cs
- FixedFindEngine.cs
- FixedTextPointer.cs
- XmlSchemaAnnotated.cs
- RegexNode.cs
- SchemaContext.cs
- ClientFormsIdentity.cs
- TextBlock.cs
- XmlSchemaInferenceException.cs
- ComponentEditorForm.cs
- CustomTypeDescriptor.cs
- ReferenceConverter.cs
- DeclarativeCatalogPart.cs
- ServiceOperationInfoTypeConverter.cs
- ListMarkerSourceInfo.cs
- Attributes.cs
- GeneralTransform.cs
- SqlDataSourceSelectingEventArgs.cs
- PageParserFilter.cs
- RepeatButton.cs
- TrackingExtract.cs
- Fx.cs
- PageBuildProvider.cs
- RenderTargetBitmap.cs
- UnsafeNativeMethodsCLR.cs
- XamlClipboardData.cs
- TreeView.cs
- NativeObjectSecurity.cs
- BuildDependencySet.cs
- RTLAwareMessageBox.cs
- HandledEventArgs.cs
- ContextQuery.cs
- basemetadatamappingvisitor.cs
- shaperfactoryquerycacheentry.cs
- InvokePattern.cs
- filewebresponse.cs
- ErrorWebPart.cs
- RandomNumberGenerator.cs
- PersianCalendar.cs
- Input.cs
- SymbolDocumentGenerator.cs
- CodeTypeParameter.cs
- GraphicsContext.cs
- InvariantComparer.cs
- CryptoApi.cs
- Quad.cs
- RtfControls.cs
- Point3DCollectionValueSerializer.cs
- ClientData.cs
- CollectionViewSource.cs
- RemotingSurrogateSelector.cs
- FloaterBaseParagraph.cs
- FileUtil.cs
- LiteralControl.cs
- Queue.cs
- CodeGen.cs
- TraceInternal.cs
- ServiceOperationWrapper.cs
- WebChannelFactory.cs
- Utils.cs
- ContractMethodInfo.cs
- CustomErrorCollection.cs
- BoolExpressionVisitors.cs
- WinCategoryAttribute.cs
- HttpCapabilitiesBase.cs
- HttpCapabilitiesSectionHandler.cs
- CodeEventReferenceExpression.cs
- SubMenuStyleCollection.cs
- KeyConstraint.cs
- XmlLangPropertyAttribute.cs
- Triplet.cs
- LoadedEvent.cs