Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- QueueProcessor.cs
- PrintPreviewDialog.cs
- OracleRowUpdatedEventArgs.cs
- ControlLocalizer.cs
- PropertySourceInfo.cs
- DataGridViewCell.cs
- SearchForVirtualItemEventArgs.cs
- CrossAppDomainChannel.cs
- SocketElement.cs
- TextTreeRootTextBlock.cs
- EntityDataSourceWrapper.cs
- CommandCollectionEditor.cs
- Italic.cs
- MenuItemStyle.cs
- OleDbReferenceCollection.cs
- ReadWriteObjectLock.cs
- ImageMap.cs
- FlowLayoutSettings.cs
- TreeViewCancelEvent.cs
- ValidationVisibilityAttribute.cs
- SplineQuaternionKeyFrame.cs
- ScriptIgnoreAttribute.cs
- SpAudioStreamWrapper.cs
- DBCommand.cs
- RadioButtonBaseAdapter.cs
- PositiveTimeSpanValidatorAttribute.cs
- EpmSourcePathSegment.cs
- DataBinder.cs
- TableCellAutomationPeer.cs
- ProxyFragment.cs
- ModelTreeEnumerator.cs
- TextRangeBase.cs
- PlatformCulture.cs
- RepeaterItemEventArgs.cs
- COM2ColorConverter.cs
- NavigationHelper.cs
- EditorZoneAutoFormat.cs
- XMLUtil.cs
- FixedPageStructure.cs
- Encoder.cs
- COM2IDispatchConverter.cs
- UnsafeNativeMethods.cs
- PenThreadWorker.cs
- PageBuildProvider.cs
- CreateSequenceResponse.cs
- FileNotFoundException.cs
- SignatureSummaryDialog.cs
- WindowClosedEventArgs.cs
- FlowDocumentReader.cs
- TrackingParameters.cs
- FontResourceCache.cs
- Marshal.cs
- ObjectDataSourceStatusEventArgs.cs
- SafeNativeMethods.cs
- ExpandoClass.cs
- StickyNoteHelper.cs
- wgx_render.cs
- SerializationFieldInfo.cs
- WebContext.cs
- EntityCommandExecutionException.cs
- ListDictionaryInternal.cs
- ObjectListShowCommandsEventArgs.cs
- ICollection.cs
- XmlILTrace.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- ChannelHandler.cs
- PrintPreviewDialog.cs
- XmlAttributeProperties.cs
- SoapFault.cs
- NavigatingCancelEventArgs.cs
- TextElementAutomationPeer.cs
- PropertyInfoSet.cs
- FolderBrowserDialog.cs
- SiteMapPathDesigner.cs
- PropertyPathConverter.cs
- PassportAuthenticationModule.cs
- Geometry3D.cs
- XamlDesignerSerializationManager.cs
- BinaryParser.cs
- LoadRetryConstantStrategy.cs
- CodeCommentStatementCollection.cs
- MdiWindowListStrip.cs
- WebBrowser.cs
- ProviderCollection.cs
- ServiceReference.cs
- DataGridColumnCollection.cs
- Flattener.cs
- Base64Encoder.cs
- ForceCopyBuildProvider.cs
- HMACSHA256.cs
- HtmlShim.cs
- __Filters.cs
- DataGridViewCheckBoxColumn.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- TraceSource.cs
- TextTreeRootTextBlock.cs
- IISMapPath.cs
- Html32TextWriter.cs
- ChangeInterceptorAttribute.cs
- AuthStoreRoleProvider.cs