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
- FigureParaClient.cs
- DataTableCollection.cs
- OdbcDataAdapter.cs
- MatrixTransform3D.cs
- SqlBuilder.cs
- BitmapVisualManager.cs
- _ShellExpression.cs
- PseudoWebRequest.cs
- WebBaseEventKeyComparer.cs
- WorkflowPrinting.cs
- XmlQualifiedName.cs
- Operator.cs
- AffineTransform3D.cs
- NativeMethods.cs
- DataGridViewCheckBoxColumn.cs
- Utility.cs
- CubicEase.cs
- BlurBitmapEffect.cs
- BadImageFormatException.cs
- Int64KeyFrameCollection.cs
- EventLogEntryCollection.cs
- ListItem.cs
- XsltOutput.cs
- Evidence.cs
- DayRenderEvent.cs
- StringValidator.cs
- PenLineJoinValidation.cs
- TraceHandler.cs
- XmlDomTextWriter.cs
- FlowDocumentView.cs
- Main.cs
- Rethrow.cs
- WebBrowserDocumentCompletedEventHandler.cs
- GridViewSelectEventArgs.cs
- DatagridviewDisplayedBandsData.cs
- CatalogPartCollection.cs
- DocumentationServerProtocol.cs
- XmlSchemaAppInfo.cs
- VectorAnimationBase.cs
- PointCollectionValueSerializer.cs
- ReturnValue.cs
- GestureRecognizer.cs
- _Win32.cs
- XslUrlEditor.cs
- DesignerCommandSet.cs
- ControlCommandSet.cs
- MobileListItemCollection.cs
- XmlCountingReader.cs
- VariantWrapper.cs
- SymmetricKey.cs
- AbandonedMutexException.cs
- OrderToken.cs
- XmlWrappingReader.cs
- OleDbInfoMessageEvent.cs
- MessageBox.cs
- EdmError.cs
- AnimationException.cs
- Stacktrace.cs
- XPathArrayIterator.cs
- RuntimeResourceSet.cs
- XmlCharType.cs
- ChildChangedEventArgs.cs
- InlineUIContainer.cs
- VisualStyleInformation.cs
- TextBoxView.cs
- Dispatcher.cs
- RegexInterpreter.cs
- PeerInvitationResponse.cs
- Content.cs
- _PooledStream.cs
- FormDesigner.cs
- SelectionHighlightInfo.cs
- ComplexBindingPropertiesAttribute.cs
- CodeCastExpression.cs
- ApplicationSettingsBase.cs
- Rect.cs
- SizeLimitedCache.cs
- FixedSOMLineRanges.cs
- RolePrincipal.cs
- HttpCookiesSection.cs
- WebEventTraceProvider.cs
- CodeDOMProvider.cs
- LexicalChunk.cs
- WinInet.cs
- ResourceManager.cs
- VisualTreeUtils.cs
- BlockExpression.cs
- PathSegmentCollection.cs
- TileBrush.cs
- MobileControlsSectionHelper.cs
- ParagraphResult.cs
- UiaCoreApi.cs
- StrongNameMembershipCondition.cs
- GrammarBuilderBase.cs
- TextParentUndoUnit.cs
- DataGrid.cs
- CompiledIdentityConstraint.cs
- HighlightVisual.cs
- PersonalizationAdministration.cs
- DelimitedListTraceListener.cs