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
- NullableLongSumAggregationOperator.cs
- CompilationPass2TaskInternal.cs
- TemplateField.cs
- ItemMap.cs
- HTTP_SERVICE_CONFIG_URLACL_PARAM.cs
- smtpconnection.cs
- ListViewEditEventArgs.cs
- CacheAxisQuery.cs
- ProfilePropertyMetadata.cs
- SqlClientWrapperSmiStreamChars.cs
- ThreadPool.cs
- AssertFilter.cs
- InitializationEventAttribute.cs
- InheritedPropertyChangedEventArgs.cs
- AccessDataSourceView.cs
- TypeRefElement.cs
- BitmapCodecInfo.cs
- TransformGroup.cs
- sqlpipe.cs
- MultilineStringConverter.cs
- SqlClientPermission.cs
- PrincipalPermission.cs
- LogSwitch.cs
- PageParser.cs
- FacetEnabledSchemaElement.cs
- TextAutomationPeer.cs
- CachedPathData.cs
- BamlResourceSerializer.cs
- XmlSubtreeReader.cs
- SqlConnection.cs
- WebPartCatalogAddVerb.cs
- AuthenticationService.cs
- UpdateRecord.cs
- ShapeTypeface.cs
- SystemException.cs
- HttpProcessUtility.cs
- ActiveXContainer.cs
- ControlBindingsCollection.cs
- PathTooLongException.cs
- PanelContainerDesigner.cs
- MetabaseServerConfig.cs
- BaseTypeViewSchema.cs
- ProfileSettings.cs
- SerializationSectionGroup.cs
- Internal.cs
- CustomAttributeSerializer.cs
- MarkupWriter.cs
- TableDetailsRow.cs
- XmlDocumentType.cs
- KeyNotFoundException.cs
- DataReaderContainer.cs
- DataObjectSettingDataEventArgs.cs
- HtmlWindowCollection.cs
- FixedDocument.cs
- SchemaTableOptionalColumn.cs
- ApplicationDirectory.cs
- XmlCompatibilityReader.cs
- InvalidDocumentContentsException.cs
- ObjectDataSourceFilteringEventArgs.cs
- _ShellExpression.cs
- IDReferencePropertyAttribute.cs
- GlobalEventManager.cs
- isolationinterop.cs
- ServiceNameCollection.cs
- BitmapEffectState.cs
- NativeMethods.cs
- WebMessageEncodingElement.cs
- XamlInterfaces.cs
- WindowsAuthenticationEventArgs.cs
- RevocationPoint.cs
- TextPointerBase.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- DataGridViewTextBoxColumn.cs
- TileBrush.cs
- StyleTypedPropertyAttribute.cs
- DataGridViewRowPrePaintEventArgs.cs
- Win32SafeHandles.cs
- DetectEofStream.cs
- XmlReflectionImporter.cs
- XmlNamespaceDeclarationsAttribute.cs
- webbrowsersite.cs
- ellipse.cs
- MembershipSection.cs
- FixedSOMPage.cs
- ManagementEventArgs.cs
- IApplicationTrustManager.cs
- EmptyStringExpandableObjectConverter.cs
- ButtonFieldBase.cs
- XamlToRtfParser.cs
- XmlDataSourceView.cs
- NameValueFileSectionHandler.cs
- FormatterConverter.cs
- IsolatedStorageFile.cs
- StorageScalarPropertyMapping.cs
- BaseCollection.cs
- ButtonFlatAdapter.cs
- PeerResolver.cs
- UITypeEditor.cs
- SettingsSavedEventArgs.cs
- filewebresponse.cs