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
- SoundPlayer.cs
- ActiveXSite.cs
- MaskedTextProvider.cs
- OrCondition.cs
- TraceShell.cs
- ConnectionInterfaceCollection.cs
- CodeDirectiveCollection.cs
- IUnknownConstantAttribute.cs
- SmiContext.cs
- WindowsListViewSubItem.cs
- BinaryMethodMessage.cs
- XmlSerializationGeneratedCode.cs
- XmlILModule.cs
- CmsInterop.cs
- TextElementCollectionHelper.cs
- StructuredTypeEmitter.cs
- OuterGlowBitmapEffect.cs
- XPathSelectionIterator.cs
- ClassValidator.cs
- KeyBinding.cs
- Helper.cs
- JoinTreeSlot.cs
- SimpleType.cs
- KernelTypeValidation.cs
- InputBinder.cs
- TextTreeInsertUndoUnit.cs
- DbConnectionFactory.cs
- SystemSounds.cs
- _OSSOCK.cs
- SecurityCriticalDataForSet.cs
- HashMembershipCondition.cs
- Compiler.cs
- BatchStream.cs
- ConnectionPointCookie.cs
- Native.cs
- StatusBar.cs
- FontResourceCache.cs
- BinaryObjectWriter.cs
- DataSysAttribute.cs
- XmlDsigSep2000.cs
- Control.cs
- CommonObjectSecurity.cs
- ControlDesigner.cs
- TreeNodeStyle.cs
- HttpContextWrapper.cs
- SignatureGenerator.cs
- TypedReference.cs
- DataPager.cs
- ApplicationException.cs
- PropertyGrid.cs
- AsyncOperationContext.cs
- DependencyProperty.cs
- XmlNamedNodeMap.cs
- SizeAnimationUsingKeyFrames.cs
- DesignerDataSchemaClass.cs
- RuntimeConfigLKG.cs
- Selection.cs
- ActivityIdHeader.cs
- DefaultBindingPropertyAttribute.cs
- safelinkcollection.cs
- SecurityResources.cs
- RefreshEventArgs.cs
- ScalarOps.cs
- TimeStampChecker.cs
- OleDbRowUpdatingEvent.cs
- ITreeGenerator.cs
- FillRuleValidation.cs
- PageThemeParser.cs
- XmlSchemaRedefine.cs
- FileUtil.cs
- MimeReturn.cs
- DataException.cs
- TextEffect.cs
- PasswordTextContainer.cs
- GeometryModel3D.cs
- ProxyElement.cs
- ListItemConverter.cs
- CompilerState.cs
- GlyphRunDrawing.cs
- SQLCharsStorage.cs
- Root.cs
- Utils.cs
- GridPatternIdentifiers.cs
- HtmlInputHidden.cs
- EventRouteFactory.cs
- ExtendedPropertiesHandler.cs
- DropSourceBehavior.cs
- XmlILStorageConverter.cs
- DPAPIProtectedConfigurationProvider.cs
- sqlmetadatafactory.cs
- CompilerParameters.cs
- HttpCachePolicyWrapper.cs
- CssTextWriter.cs
- TraceContext.cs
- InvokeHandlers.cs
- SubtreeProcessor.cs
- XPathParser.cs
- ProxyWebPart.cs
- SmtpNegotiateAuthenticationModule.cs
- WebPartsSection.cs