Code:
/ DotNET / DotNET / 8.0 / untmp / Orcas / RTM / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ProtectedConfiguration.cs
- MemberInfoSerializationHolder.cs
- MetadataHelper.cs
- BinaryReader.cs
- PermissionToken.cs
- StyleCollection.cs
- ToolStripSettings.cs
- XmlToDatasetMap.cs
- AmbientLight.cs
- TextEvent.cs
- KnownColorTable.cs
- DocumentPageHost.cs
- ProcessHostFactoryHelper.cs
- Util.cs
- FrameSecurityDescriptor.cs
- CommandTreeTypeHelper.cs
- _ConnectionGroup.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- DateTimeSerializationSection.cs
- CellTreeSimplifier.cs
- UntrustedRecipientException.cs
- AssociationSetMetadata.cs
- ResourceReferenceExpressionConverter.cs
- CharacterHit.cs
- CompiledXpathExpr.cs
- WebConfigurationManager.cs
- DocumentCollection.cs
- TaskForm.cs
- PolyLineSegment.cs
- CodeTypeReferenceSerializer.cs
- BackStopAuthenticationModule.cs
- SignedInfo.cs
- HasCopySemanticsAttribute.cs
- Span.cs
- DateTimeValueSerializerContext.cs
- ProviderException.cs
- EventItfInfo.cs
- SqlCaseSimplifier.cs
- MarkupCompilePass1.cs
- ListDictionaryInternal.cs
- ClientType.cs
- TemplatePartAttribute.cs
- KeyGestureValueSerializer.cs
- Form.cs
- securestring.cs
- SiteIdentityPermission.cs
- Select.cs
- PrintPreviewControl.cs
- Stack.cs
- WebEventCodes.cs
- COM2Enum.cs
- _TLSstream.cs
- IItemContainerGenerator.cs
- WindowsFormsSynchronizationContext.cs
- TimeSpanValidatorAttribute.cs
- BackStopAuthenticationModule.cs
- Rect.cs
- CaseStatement.cs
- PriorityBindingExpression.cs
- DataGridTextBoxColumn.cs
- InlinedAggregationOperator.cs
- _Rfc2616CacheValidators.cs
- Char.cs
- ToolStripContentPanelRenderEventArgs.cs
- EmbeddedMailObject.cs
- XpsPackagingPolicy.cs
- Utils.cs
- LassoHelper.cs
- StylusPointPropertyUnit.cs
- HttpHeaderCollection.cs
- WindowsIdentity.cs
- AssertUtility.cs
- DispatcherProcessingDisabled.cs
- EpmSyndicationContentSerializer.cs
- Scheduler.cs
- ProviderUtil.cs
- XmlProcessingInstruction.cs
- GridViewRowPresenter.cs
- JavaScriptSerializer.cs
- TextEditorSelection.cs
- XmlIlGenerator.cs
- LineInfo.cs
- XmlLinkedNode.cs
- XPathNode.cs
- ResourceIDHelper.cs
- loginstatus.cs
- ThreadSafeMessageFilterTable.cs
- TableCell.cs
- SQLMoney.cs
- ContourSegment.cs
- CustomAttributeFormatException.cs
- ConfigurationException.cs
- SharedUtils.cs
- ListMarkerSourceInfo.cs
- ExtensionSimplifierMarkupObject.cs
- TextServicesCompartment.cs
- BuildResult.cs
- SessionEndingEventArgs.cs
- XPathDocumentBuilder.cs
- ParserStreamGeometryContext.cs