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
- BuilderPropertyEntry.cs
- ColorContext.cs
- DatagridviewDisplayedBandsData.cs
- CompModHelpers.cs
- DragDeltaEventArgs.cs
- COM2Enum.cs
- OleDbStruct.cs
- EndOfStreamException.cs
- AuthenticatingEventArgs.cs
- CustomCredentialPolicy.cs
- RNGCryptoServiceProvider.cs
- ControlPropertyNameConverter.cs
- SaveFileDialogDesigner.cs
- ClientOperation.cs
- SafePipeHandle.cs
- StringPropertyBuilder.cs
- xmlformatgeneratorstatics.cs
- SingleBodyParameterMessageFormatter.cs
- PartialCachingControl.cs
- WindowsFormsSectionHandler.cs
- SignedXml.cs
- DataGridViewCellFormattingEventArgs.cs
- ValidationSummary.cs
- sqlser.cs
- DocumentOrderQuery.cs
- Errors.cs
- BamlRecords.cs
- TypefaceCollection.cs
- ChangeBlockUndoRecord.cs
- ApplicationDirectory.cs
- StrongNameMembershipCondition.cs
- Source.cs
- MissingMemberException.cs
- LiteralTextContainerControlBuilder.cs
- InputChannel.cs
- PrinterResolution.cs
- ListCommandEventArgs.cs
- VirtualizedContainerService.cs
- SqlProfileProvider.cs
- PackageStore.cs
- TraceShell.cs
- InternalPermissions.cs
- PropertyPanel.cs
- _FtpDataStream.cs
- NumberFormatter.cs
- Tokenizer.cs
- HiddenFieldPageStatePersister.cs
- TypeGeneratedEventArgs.cs
- WindowsListBox.cs
- DesignerGenericWebPart.cs
- HitTestFilterBehavior.cs
- securitycriticaldata.cs
- ResolvedKeyFrameEntry.cs
- _NestedMultipleAsyncResult.cs
- TypeGeneratedEventArgs.cs
- SubtreeProcessor.cs
- XmlElementAttribute.cs
- SynchronizedInputAdaptor.cs
- ExecutionEngineException.cs
- Bitmap.cs
- _SSPISessionCache.cs
- KeyedCollection.cs
- SelectionPattern.cs
- SoapWriter.cs
- TagMapCollection.cs
- WinCategoryAttribute.cs
- WebServiceData.cs
- FragmentNavigationEventArgs.cs
- EncodingStreamWrapper.cs
- PriorityQueue.cs
- MulticastDelegate.cs
- ZoneButton.cs
- DictionaryBase.cs
- ContentTextAutomationPeer.cs
- RequestCacheManager.cs
- TemplateManager.cs
- StreamMarshaler.cs
- StyleTypedPropertyAttribute.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- Range.cs
- SqlClientMetaDataCollectionNames.cs
- ProcessModelSection.cs
- PerformanceCounterManager.cs
- SQLMoneyStorage.cs
- Library.cs
- XmlSchemaSimpleContentRestriction.cs
- StructuralObject.cs
- HelpInfo.cs
- XmlWriterDelegator.cs
- TextProviderWrapper.cs
- SettingsProviderCollection.cs
- MD5CryptoServiceProvider.cs
- QilLoop.cs
- TableCellsCollectionEditor.cs
- IdnMapping.cs
- CodeMemberMethod.cs
- URLString.cs
- UpdateProgress.cs
- DataGridViewButtonColumn.cs
- DecimalAnimationUsingKeyFrames.cs