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
- VariableBinder.cs
- VisualStateGroup.cs
- PropertyMetadata.cs
- StrongTypingException.cs
- ToolStripItemClickedEventArgs.cs
- StoryFragments.cs
- LineGeometry.cs
- BaseTreeIterator.cs
- ProxyElement.cs
- DataControlField.cs
- M3DUtil.cs
- UserControl.cs
- ThreadExceptionEvent.cs
- ScrollEventArgs.cs
- EditingMode.cs
- LiteralText.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- DictionaryItemsCollection.cs
- SynchronizedInputAdaptor.cs
- TimeStampChecker.cs
- RightsManagementProvider.cs
- MULTI_QI.cs
- Brush.cs
- XXXOnTypeBuilderInstantiation.cs
- HttpAsyncResult.cs
- BaseCodePageEncoding.cs
- CollectionViewGroupRoot.cs
- PerformanceCounterCategory.cs
- UseLicense.cs
- StorageComplexTypeMapping.cs
- XmlSchemaSubstitutionGroup.cs
- XmlSchemaRedefine.cs
- WindowClosedEventArgs.cs
- PerformanceCountersElement.cs
- BrowserCapabilitiesFactory35.cs
- JapaneseCalendar.cs
- TaiwanLunisolarCalendar.cs
- BindingExpressionUncommonField.cs
- XslUrlEditor.cs
- DataBinding.cs
- ContractMethodParameterInfo.cs
- RemotingSurrogateSelector.cs
- _Win32.cs
- ImportCatalogPart.cs
- LocationSectionRecord.cs
- PenContext.cs
- DrawingContextDrawingContextWalker.cs
- ProgressBar.cs
- wmiprovider.cs
- XmlStreamNodeWriter.cs
- ActivityInfo.cs
- FileDialog.cs
- TimeSpanMinutesConverter.cs
- oledbmetadatacolumnnames.cs
- SqlInternalConnectionTds.cs
- DockingAttribute.cs
- PathNode.cs
- SQLUtility.cs
- Font.cs
- WorkflowDataContext.cs
- PassportAuthenticationModule.cs
- UTF32Encoding.cs
- PasswordBoxAutomationPeer.cs
- AuthenticateEventArgs.cs
- XmlRootAttribute.cs
- ThreadAttributes.cs
- RoutedCommand.cs
- RolePrincipal.cs
- IncrementalHitTester.cs
- DiagnosticsConfiguration.cs
- ConsumerConnectionPoint.cs
- SoapElementAttribute.cs
- PipelineComponent.cs
- HandleCollector.cs
- DropShadowBitmapEffect.cs
- BaseTemplateBuildProvider.cs
- newitemfactory.cs
- ScaleTransform.cs
- SortAction.cs
- SqlNodeAnnotations.cs
- ActivitySurrogateSelector.cs
- ADMembershipProvider.cs
- ControlBuilder.cs
- UrlParameterWriter.cs
- HttpSocketManager.cs
- TextSimpleMarkerProperties.cs
- BamlLocalizableResource.cs
- ToolBar.cs
- AudienceUriMode.cs
- WindowsRegion.cs
- SignerInfo.cs
- Translator.cs
- VirtualDirectoryMapping.cs
- DesigntimeLicenseContext.cs
- SpecularMaterial.cs
- MetadataArtifactLoaderComposite.cs
- CustomExpressionEventArgs.cs
- TdsRecordBufferSetter.cs
- VSWCFServiceContractGenerator.cs
- RIPEMD160Managed.cs