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
- WeakHashtable.cs
- LOSFormatter.cs
- HttpRawResponse.cs
- PersistenceException.cs
- CategoryList.cs
- Walker.cs
- ComponentCollection.cs
- TaskSchedulerException.cs
- CngUIPolicy.cs
- GridSplitterAutomationPeer.cs
- DockingAttribute.cs
- OleDbCommandBuilder.cs
- MemoryFailPoint.cs
- DelegateBodyWriter.cs
- storepermission.cs
- ArrayEditor.cs
- WebPartAuthorizationEventArgs.cs
- AppSettingsSection.cs
- AVElementHelper.cs
- XmlNotation.cs
- AssemblyEvidenceFactory.cs
- DataSourceCacheDurationConverter.cs
- XamlBrushSerializer.cs
- OleDbPropertySetGuid.cs
- DataGridViewCellCancelEventArgs.cs
- TypeLoadException.cs
- XmlSchemaType.cs
- TableRow.cs
- FontCollection.cs
- ConsumerConnectionPoint.cs
- ForeignKeyConstraint.cs
- DataGridViewColumnCollection.cs
- TextWriter.cs
- SmiMetaData.cs
- _UriTypeConverter.cs
- AgileSafeNativeMemoryHandle.cs
- PeerNameRecordCollection.cs
- PageThemeCodeDomTreeGenerator.cs
- DataFormat.cs
- EventHandlerList.cs
- HeaderElement.cs
- CompositeFontParser.cs
- ValueConversionAttribute.cs
- TextElementCollectionHelper.cs
- XmlNodeReader.cs
- SemanticResultValue.cs
- MaskedTextBoxDesignerActionList.cs
- SqlTypesSchemaImporter.cs
- UInt16Converter.cs
- InteropBitmapSource.cs
- StorageEntityContainerMapping.cs
- DesignerActionListCollection.cs
- MessageQueueEnumerator.cs
- JoinSymbol.cs
- NamedObject.cs
- ButtonChrome.cs
- PictureBox.cs
- AnchoredBlock.cs
- EntityModelBuildProvider.cs
- PersistenceTypeAttribute.cs
- FolderBrowserDialogDesigner.cs
- MarshalByValueComponent.cs
- ProfileManager.cs
- EngineSiteSapi.cs
- Nodes.cs
- TableRowCollection.cs
- mactripleDES.cs
- BlurEffect.cs
- QilVisitor.cs
- WorkflowInstanceProvider.cs
- XmlExtensionFunction.cs
- UnsafeNativeMethods.cs
- XamlInterfaces.cs
- DbParameterCollection.cs
- InputMethodStateTypeInfo.cs
- TextRenderer.cs
- FrameworkTemplate.cs
- CodeAccessPermission.cs
- VectorAnimationUsingKeyFrames.cs
- EntityContainer.cs
- XslAst.cs
- Timer.cs
- StyleCollectionEditor.cs
- WindowsRegion.cs
- RangeValidator.cs
- SendMailErrorEventArgs.cs
- Visual3D.cs
- AmbientEnvironment.cs
- PKCS1MaskGenerationMethod.cs
- DbConnectionClosed.cs
- ToolStripDesigner.cs
- TemplateParser.cs
- CollectionType.cs
- DataTablePropertyDescriptor.cs
- CopyAction.cs
- CommonObjectSecurity.cs
- EventMap.cs
- AssociatedControlConverter.cs
- XmlILOptimizerVisitor.cs
- ADRole.cs