Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- IdentityElement.cs
- SQLInt64.cs
- Rijndael.cs
- PixelShader.cs
- UrlMapping.cs
- SQLRoleProvider.cs
- GreenMethods.cs
- ActiveXSite.cs
- SystemUdpStatistics.cs
- ListSourceHelper.cs
- TextTreeDeleteContentUndoUnit.cs
- DomainLiteralReader.cs
- StylusEventArgs.cs
- SetStateEventArgs.cs
- ReferenceSchema.cs
- StylusShape.cs
- Application.cs
- SystemDiagnosticsSection.cs
- ToggleProviderWrapper.cs
- NativeCppClassAttribute.cs
- HtmlInputSubmit.cs
- TabControlEvent.cs
- DataExpression.cs
- thaishape.cs
- SQLMembershipProvider.cs
- PersonalizationProvider.cs
- WizardForm.cs
- DesignerActionMethodItem.cs
- RadialGradientBrush.cs
- X509Certificate.cs
- CompoundFileDeflateTransform.cs
- QilScopedVisitor.cs
- assertwrapper.cs
- StyleSelector.cs
- GroupBox.cs
- XmlSchemaInclude.cs
- VariableAction.cs
- BuildManager.cs
- ToolboxDataAttribute.cs
- SemanticBasicElement.cs
- SettingsBase.cs
- TrustLevelCollection.cs
- ListDictionaryInternal.cs
- DateTimePicker.cs
- FileDialogCustomPlace.cs
- ApplicationProxyInternal.cs
- RayMeshGeometry3DHitTestResult.cs
- BulletedList.cs
- GroupPartitionExpr.cs
- SecondaryIndexList.cs
- View.cs
- UniqueEventHelper.cs
- DbSetClause.cs
- LinqDataSourceInsertEventArgs.cs
- Rule.cs
- ScriptMethodAttribute.cs
- SspiSafeHandles.cs
- CardSpaceShim.cs
- HitTestParameters.cs
- EventLogLink.cs
- ComponentCommands.cs
- HotCommands.cs
- OleCmdHelper.cs
- ButtonBaseDesigner.cs
- TaskFileService.cs
- MethodRental.cs
- EndPoint.cs
- PartialArray.cs
- PortCache.cs
- TextFormatterImp.cs
- WmlPhoneCallAdapter.cs
- ValidateNames.cs
- BlurEffect.cs
- ToolTip.cs
- ComboBox.cs
- BindUriHelper.cs
- DynamicResourceExtension.cs
- CompositeTypefaceMetrics.cs
- StatusBar.cs
- TransformGroup.cs
- DecoderNLS.cs
- ValueSerializerAttribute.cs
- InvalidFilterCriteriaException.cs
- TouchesOverProperty.cs
- RepeaterItem.cs
- NotificationContext.cs
- ExceptQueryOperator.cs
- ToolBarButton.cs
- Stylesheet.cs
- TextTrailingWordEllipsis.cs
- TrackBar.cs
- SecurityRuntime.cs
- RuntimeConfig.cs
- DesignBindingPicker.cs
- DataSvcMapFile.cs
- ButtonBaseAutomationPeer.cs
- InternalBufferOverflowException.cs
- EntityDesignerDataSourceView.cs
- CustomAssemblyResolver.cs
- RoleManagerEventArgs.cs