Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / UI / ResourceCategoryAttribute.cs / 1305376 / 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
- ItemType.cs
- FontEmbeddingManager.cs
- StorageAssociationTypeMapping.cs
- TextEffect.cs
- SafeNativeMethods.cs
- TextRange.cs
- WebBrowsableAttribute.cs
- SatelliteContractVersionAttribute.cs
- EmptyQuery.cs
- PageCodeDomTreeGenerator.cs
- ToolStripProgressBar.cs
- OutputScopeManager.cs
- SaveFileDialogDesigner.cs
- SqlFacetAttribute.cs
- ResolveMatchesMessageCD1.cs
- OleDbDataAdapter.cs
- ACE.cs
- AxisAngleRotation3D.cs
- CodeDOMProvider.cs
- ListBoxItem.cs
- ClipboardData.cs
- ObjectAssociationEndMapping.cs
- ParameterBuilder.cs
- MinimizableAttributeTypeConverter.cs
- ComboBoxRenderer.cs
- BuildProvider.cs
- SiteOfOriginPart.cs
- IntegerValidator.cs
- StrongNamePublicKeyBlob.cs
- DetailsViewDeletedEventArgs.cs
- Stacktrace.cs
- EntityDataSourceWrapper.cs
- DynamicObject.cs
- ProviderBase.cs
- TextRunProperties.cs
- SourceInterpreter.cs
- LayoutEngine.cs
- ComponentDispatcherThread.cs
- EventData.cs
- StorageComplexTypeMapping.cs
- DesignerRegion.cs
- MinimizableAttributeTypeConverter.cs
- MimeTypeMapper.cs
- ClientUtils.cs
- StrokeNodeOperations.cs
- BindingContext.cs
- DataRowCollection.cs
- ImageInfo.cs
- ResourceDisplayNameAttribute.cs
- DataRowView.cs
- SqlGatherProducedAliases.cs
- ContentElementAutomationPeer.cs
- SiteMapDataSourceView.cs
- SecurityTokenAuthenticator.cs
- ProfileBuildProvider.cs
- DataGridColumnEventArgs.cs
- GregorianCalendar.cs
- HttpException.cs
- EditingMode.cs
- DocumentDesigner.cs
- AssertSection.cs
- TraceXPathNavigator.cs
- DbConnectionPoolOptions.cs
- XamlTypeWithExplicitNamespace.cs
- DoubleAnimation.cs
- StickyNote.cs
- InputLangChangeEvent.cs
- SqlClientPermission.cs
- DesignerActionTextItem.cs
- DataRowCollection.cs
- MultiView.cs
- X509CertificateCollection.cs
- ArrayWithOffset.cs
- FixedSchema.cs
- DefaultValidator.cs
- QueryResults.cs
- ConfigurationPermission.cs
- QueryOutputWriter.cs
- TabPanel.cs
- JournalEntry.cs
- TypeBrowser.xaml.cs
- ConfigurationLocationCollection.cs
- _KerberosClient.cs
- COAUTHINFO.cs
- WindowsFormsHostPropertyMap.cs
- HttpCookiesSection.cs
- PenCursorManager.cs
- PerfCounterSection.cs
- Html32TextWriter.cs
- XmlConvert.cs
- TransformedBitmap.cs
- DelayedRegex.cs
- ComponentEditorForm.cs
- TablePatternIdentifiers.cs
- ContactManager.cs
- BrowserDefinitionCollection.cs
- FormViewUpdatedEventArgs.cs
- Timer.cs
- BinaryParser.cs
- SqlBulkCopy.cs