Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / xsp / System / Web / Extensions / ui / ResourceCategoryAttribute.cs / 1 / ResourceCategoryAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Reflection; using System.Web.Resources; using System.Web.Util; [AttributeUsage(AttributeTargets.All)] internal sealed class ResourceCategoryAttribute : CategoryAttribute { internal ResourceCategoryAttribute(string category) : base(category) { } public override object TypeId { get { return typeof(CategoryAttribute); } } protected override string GetLocalizedString(string value) { string localizedValue = base.GetLocalizedString(value); if (localizedValue == null) { localizedValue = AtlasWeb.ResourceManager.GetString("Category_" + value, AtlasWeb.Culture); } // This attribute is internal, and we should never have a missing resource string. // System.Diagnostics.Debug.Assert(localizedValue != null, "All WebForms category attributes should have localized strings. Category '" + value + "' not found."); return localizedValue; } } } // 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; using System.Web.Util; [AttributeUsage(AttributeTargets.All)] internal sealed class ResourceCategoryAttribute : CategoryAttribute { internal ResourceCategoryAttribute(string category) : base(category) { } public override object TypeId { get { return typeof(CategoryAttribute); } } protected override string GetLocalizedString(string value) { string localizedValue = base.GetLocalizedString(value); if (localizedValue == null) { localizedValue = AtlasWeb.ResourceManager.GetString("Category_" + value, AtlasWeb.Culture); } // This attribute is internal, and we should never have a missing resource string. // System.Diagnostics.Debug.Assert(localizedValue != null, "All WebForms category attributes should have localized strings. Category '" + value + "' not found."); return localizedValue; } } } // 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
- AppDomainShutdownMonitor.cs
- LineSegment.cs
- LinqDataSourceUpdateEventArgs.cs
- HyperLinkField.cs
- XmlSchemaInfo.cs
- Dispatcher.cs
- BufferedGraphicsManager.cs
- LinqDataSourceView.cs
- ServiceProviders.cs
- HierarchicalDataBoundControl.cs
- DataFormats.cs
- InstancePersistenceException.cs
- XsdValidatingReader.cs
- HtmlShim.cs
- Switch.cs
- UITypeEditors.cs
- AssemblyResourceLoader.cs
- StorageAssociationTypeMapping.cs
- xamlnodes.cs
- columnmapfactory.cs
- HandledEventArgs.cs
- DataGridViewBindingCompleteEventArgs.cs
- ComEventsMethod.cs
- FixUpCollection.cs
- CommandBindingCollection.cs
- VectorKeyFrameCollection.cs
- QilTernary.cs
- MemoryResponseElement.cs
- VerificationException.cs
- SQLMoneyStorage.cs
- ErrorHandlerModule.cs
- Permission.cs
- DateTimeSerializationSection.cs
- SmtpCommands.cs
- SettingsPropertyValue.cs
- DragDropManager.cs
- FlowDocumentScrollViewer.cs
- Positioning.cs
- TimeSpan.cs
- RequestBringIntoViewEventArgs.cs
- QualificationDataAttribute.cs
- DataGridColumnCollection.cs
- ProgressBarHighlightConverter.cs
- listitem.cs
- MetaDataInfo.cs
- MasterPageCodeDomTreeGenerator.cs
- Nodes.cs
- X509CertificateCollection.cs
- ReachSerializationCacheItems.cs
- TextEditorTyping.cs
- DesignerVerbCollection.cs
- AgileSafeNativeMemoryHandle.cs
- ImageAnimator.cs
- HttpCacheVaryByContentEncodings.cs
- TriggerCollection.cs
- VScrollProperties.cs
- JournalNavigationScope.cs
- AxWrapperGen.cs
- ConfigXmlSignificantWhitespace.cs
- Propagator.JoinPropagator.cs
- CustomCategoryAttribute.cs
- ResXResourceSet.cs
- UserNameSecurityTokenAuthenticator.cs
- ObjRef.cs
- SerializationHelper.cs
- Vector3DAnimation.cs
- RichTextBox.cs
- ServiceMetadataPublishingElement.cs
- TextAutomationPeer.cs
- TimeEnumHelper.cs
- RemoteWebConfigurationHostServer.cs
- ByeMessageCD1.cs
- ConfigurationPermission.cs
- CommandPlan.cs
- CacheEntry.cs
- CodeTypeReference.cs
- BackStopAuthenticationModule.cs
- Button.cs
- GroupBox.cs
- SelectionItemPattern.cs
- TextRangeEditTables.cs
- DateTimeFormatInfoScanner.cs
- DeflateEmulationStream.cs
- DrawingBrush.cs
- SigningCredentials.cs
- GridEntryCollection.cs
- MsmqHostedTransportManager.cs
- CompilerResults.cs
- ButtonBaseAdapter.cs
- ImportContext.cs
- CurrencyWrapper.cs
- ConfigurationLocation.cs
- CodeIterationStatement.cs
- ExecutionContext.cs
- XmlNodeChangedEventArgs.cs
- ReflectionServiceProvider.cs
- SmiSettersStream.cs
- ApplicationBuildProvider.cs
- ConnectionProviderAttribute.cs
- oledbmetadatacollectionnames.cs